This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: Deploying Simple Servletdontocsata Aug 29, 2009 7:49 PM (in response to dontocsata)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> 
- 
        2. Re: Deploying Simple Servletpeterj Aug 29, 2009 8:51 PM (in response to dontocsata)http://localhost:8080/helloworld/hello 
 The "/helloworld" context comes from the WAR file name, the "/hello" comes from the url-pattern in the web.xml.
 
    