Thanks. I have read the servlet2.2 spec, but found it too simplified.
Previously, I use apache+jserv, and visit my servlet by
http://site/webapp/FooServlet
and now I try to move to jsp, and i am using tomcat. I placed by servlet
class files in the WEB-INF/classes directory, and I can visit my servlet
using http://site/webapp/servlet/FooServlet. I can use url mapping to change
to another url such as http://site/webapp/anothername/FooServlet. But I
can't change to http://site/webapp/FooServlet. Since I can't map the root
directory of the webapp to a servlet. I tried to use "/" or "/*", all
failed.
Anymore suggestion?
Thanks.

----- Original Message -----
From: Hans Bergsten <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 05, 2000 12:09 PM
Subject: Re: help


> 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

===========================================================================
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