[jboss-user] [Beginner's Corner] - Re: Deploying Simple Servlet

dontocsata do-not-reply at jboss.com
Sat Aug 29 19:49:36 EDT 2009


I got it to deploy, but how do I access it? 

I made the following changes:

File structure:
helloworld.war/WEB-INF/web.xml
helloworld.war/WEB-INF/classes/test/HelloServlet.class

XML File:

  |  <!DOCTYPE web-app PUBLIC  
  |  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"  
  |  "http://java.sun.com/dtd/web-app_2_3.dtd">
  | <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http:/java.sun.com/dtd/web-app_2_3.dtd">
  |   <servlet>
  |     <servlet-name>hello</servlet-name>
  |     <servlet-class>test.HelloServlet</servlet-class>
  |   </servlet>
  | 
  |   <servlet-mapping>
  |     <servlet-name>hello</servlet-name>
  |     <url-pattern>/hello</url-pattern>
  |   </servlet-mapping>
  | </web-app>
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252463#4252463

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252463



More information about the jboss-user mailing list