[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Servlet is not displaying

tdavisjr do-not-reply at jboss.com
Tue Aug 22 15:48:31 EDT 2006


Directory structure:
root-dir  - testservlet.war
   dir - WEB-INF
     | dir - classes
     |   dir - test
     |    - TestServlet.class
     |    - TestServlet.java
       - web.xml

And contents of web.xml are:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">

    <display-name>Test Servlet</display-name>
    I am just testing a HTTP Servlet

    
        <servlet-name>TestServlet</servlet-name>
        <servlet-class>test.TestServlet</servlet-class>
    

    <servlet-mapping>
        <servlet-name>TestServlet</servlet-name>
        <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>

</web-app>

I hope this helps out.


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

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



More information about the jboss-user mailing list