In the server.xml you can define a new Context that maps between context and
actual directory.

In the following example calling servlets through
http://your.company.com/tt/servlet/myservlet
will launch the servlets from d:/xx/yy/zz/webpages

        <Context path="/tt" docBase="d:/xx/yy/zz/webpages"
crossContext="true" debug="0" reloadable="true"  trusted="false"/>

if you want to call servlets from the server root set the path to "".

-----------------------------
Eitan Ben-Noach
Proficiency, Ltd.

Tel: +972.2.548.0287
Fax: +972.2.586.3871
email: [EMAIL PROTECTED]

The Intelligence in Engineering Supply Chain Collaboration
<http://www.proficiency.com/>




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 9:17 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet not in webapps directory
> 
> 
> Hi ! It is possible to lauch a sevlet that is not in the TOMCAT_HOME
> directory ?
> Can I do that by configuring a Context for my servlet ? And 
> how exactly ?
> 
> thanx
> 
> -- 
> Sent through GMX FreeMail - http://www.gmx.net
> 

Reply via email to