Special offer today! Two for the price of one :-)
> -----Original Message-----
> From: Joćo Feliciano [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, November 10, 2000 1:11 PM
> To: Tomcat-User
> Subject: Access a Servlet!!
>
> Hello,
>
> I have a servlet that I access through this url
> http://localhost/servlet/servletApp/ and I would like to access through
> this
> one http://localhost/servletAppAlias/.
>
> Can I do this? How?
[Kitching Simon]
in yourwebapp/WEB-INF/web.xml,
(a) add a <servlet> entry
(b) add a <servlet-mapping> entry
I'm sure this is in either the docs or the examples....
> Do I have to have my web applications on the dir webapps?
[Kitching Simon]
Nope, you just edit $TOMCAT_HOME/conf/server.xml,
create a <context> attribute for your webapp and set
the appropriate root directory attribute.
> Thanks.
>
> Joćo Feliciano
[Kitching Simon]
No problem..
Simon