If your context happens to be "cgi" that should be possible. Put something
like this in your web.xml:
<servlet>
<servlet-name>myServlet</servlet-name>
<servlet-class>com.YourInstitution.servlet.myServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myServlet</servlet-name>
<url-pattern>/vq/ca.exe</url-pattern>
</servlet-mapping>
Otherwise the only solution I know is to use the URL rewriting capabilities
of a webserver such as apache and forward the requests in questing
(e.g. via mod_jk) to Tomcat. I would be interested in a way to get rid off
the
sometimes unnecessary context-prefix myself.
Andreas Mohrig
-----Urspr�ngliche Nachricht-----
Von: Taral Shah [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 13:33
An: Tomcat Users List
Betreff: Mapping directory
Is it possible to map path in topmcat.
I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc
Can I redirect this request to
http://ip:8080/<context>/servlet/myServlet?abc
Is it possible with just configuring tomcat.
Thanks
Taral Shah
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>