One idea is to make the application your root context.  You will still
need to use http://www.qbus.co.nz/servlet/servletName or else do the
mappings.  If you don't like maintaining the list, write a script to
maintain it for you.  Should be no problem removing and adding mappings
considering this is an xml doc.


David Durham

-----Original Message-----
From: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 4:34 PM
To: [EMAIL PROTECTED]
Subject: Re: url relative to directory path?


Take a look at the <servlet-mapping> tag of the web.xml file.
With this tag you can specify how to access yopur servlet.

 <servlet-mapping>
   <servlet-name>servletname</servlet-name>
   <url-pattern>/servletname</url-pattern>
 </servlet-mapping>

Erwin

Antoni Unkovich wrote:

>Hello from downunder (New Zealand),
>
>I'm new to tomcat and java but have successfully installed Tomcat 3.3
on
>Windows 2000 server in conjunction with IIS and the redirector plug-in
-
>which I have working fine.
>
>My servlet is in this directory: 
>E:\tomcat\webapps\qbus\WEB-INF\Classes\qbus\servletname.class
>
>to access it I use this url:
>
>www.qbus.co.nz/qbus/servlet/servletname
>
>What do I need to change to access it from:
>
>www.qbus.co.nz/servletname
>
>Thanks in advance
>Antoni Unkovich
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to