Yang Liu wrote:
>
> Dear all:
> I am trying to change from servlet to jsp. My servlet application resides in
> /webapp. Before I using apache, I can visit my servlet by
> /webapp/servletname. But now when I changed to jsp, I must visit my servlet
> by /webapp/servlet/servletname. (I put all the servlet classes in directory
> /WEB-INF/classes, and using tomcat3.1) Can anyone tell me how can I visit my
> servlet using /webapp/servletname? And can anyone tell me where can I find
> detailed document about the "web.xml" file?

The web.xml file is documented as part of the Servlet 2.2 spec, available
at <http://java.sun.com/products/servlet/2.2/>. There you can see how to
create URL patterns that map directly to your servlet instead of using the
"invoker" URL syntax (/servlet/FooServlet).

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to