I would like to be able to access a servlet with the URL
http://localhost:8080/demo
However, it only works if I go to
http://localhost:8080/demo/servlet/demo
I have the following in server.xml and web.xml respectively:
<Context path="/demo"
docBase="webapps/demo"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
BTW, should I comment out or use the following in some way?
<RequestInterceptor
className="org.apache.tomcat.request.InvokerInterceptor"
debug="0" prefix="/servlet/" />
My web.xml in webapps/demo/WEB_INF/web.xml has the following:
<servlet>
<servlet-name>demo</servlet-name>
<servlet-class>org.demo.DemoServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>demo</servlet-name>
<url-pattern>/demo</url-pattern>
</servlet-mapping>
So I would like to be able to use <form action="/demo"> and have the
servlet invoked.
Thanks very much, Jason
--
Jason Novotny [EMAIL PROTECTED]
Home: (510) 704-9917 Work: (510) 486-8662
NERSC Distributed Computing http://www-didc.lbl.gov
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]