Deploying WAR on JBOSS - II
15 June 2008Please do read the first part of this post before going through this one.
Now create a JSP file in the work folder.
<html><head><title>Hello World</title> <%! String msg = "Hello World."; %> </head> <body> <h2><%= msg %></h2> <%= new java.util.Date() %> </body></html>
Now is the time to create deployment descriptor. The deployment descriptor is used to provide information to JBoss about our web application.
In your work folder (HelloWorld folder), create a sub folder called WEB-INF. Create a file named web.xml in it with following contents:
<web-app> <display-name>Hello World</display-name> </web-app>
Continued …
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Deploying WAR on JBOSS - II