Hi,
you got the directory listing, because you set the docBase to the
"webapps"-Directory:
>I have included <Context path="/test" docBase="" debug="0"
reloadable="true" /> in the server.xml file.
You have to give your directory "test" as docBase.
Other settings seem to me to be correct.
Try with this web.xml:
--8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--
------8<------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<!-- Context Parameters -->
<context-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</context-param>
<!-- Servlets -->
<servlet>
<servlet-name>
Test
</servlet-name>
<servlet-class>
Test
</servlet-class>
</servlet>
<!-- Servlet Mappings -->
<servlet-mapping>
<servlet-name>
Test
</servlet-name>
<url-pattern>
/
</url-pattern>
</servlet-mapping>
<!-- /pathInfo/* -->
<!-- Taglibs -->
</web-app>
--8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--
------8<------
By,
Regine
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com