tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Mohrig <andreas.moh...@cadooz.de>
Subject AW: Mapping directory
Date Tue, 13 Aug 2002 12:12:20 GMT
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:tarals@contechsoftware.com]
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message