Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

web.xml config

Allan Bruce

2004-01-16

Replies:

I have tomcat up and running fine - verified by running the example jsp
pages and servlets.
I have a servlet that I want to get working, called WinGalagaHST which is
used for my game I have been developing. I have put it in my tomcats
webapps directory, and the necessary subdirs like

/usr/local/sites/tomcat/tomcat/webapps/WinGalagaHST/WEB-INF/classes

I have put the class files in the classes folder (2 of them, called
EDSServlet.class and WinGalagaHST.class), and have my web.xml in the WEB-INF
directory. Is this correct? Below is my web.xml file. If anybody knows
where I am going wrong, I would much appreciate the help.

Thanks very much
Allan




-----web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

<!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>
    <servlet>
          <servlet-name>
               WinGalagaHST
          </servlet-name>
          <servlet-class>
               WinGalagaHST
          </servlet-class>
    </servlet>
    <servlet-mapping>
           <servlet-name>WinGalagaHST</servlet-name>
           <url-pattern>/WinGalaga</url-pattern>
    </servlet-mapping>
</web-app>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.