Howdy,
You realize one page can only map to one servlet, right?  There can only
be one /exit.htm for your webapp.

You can, however, code that servlet to see whether the request came from
ip or elcom and do different things accordingly.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Varley, Roger [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 21, 2003 10:19 AM
>To: Tomcat Users List (E-mail)
>Subject: URL mapping problem
>
>Hi
>
>(Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6)
>
>I have a commercial web application (to which I have no access to the
>source) that exists in two configurations (i.e two sets of web
directories
>below Inetpub/wwwroot). The application ends by calling exit.htm in
their
>respective html directories (ipshtml and elcomhtml). I need to do some
>extra
>processing and want to replace these calls to exit.htm with calls to
>servlets that exist in a Tomcat web application. Each call needs a
>different
>servlet although they are in the same Tomcat web application
>
>I've put the following entries in uriworkermap.properties (one for each
of
>the applications)
>
>/ipshtml/exit.htm=$(default.worker)
>/elcomhtml/exit.htm=$(default.worker)
>
>and after restarting both tomcat and IIS, I can see from the isapi.log
that
>IIS is correctly identifying both these calls as servlet URLS and hands
off
>to tomcat.
>
>What I'm having problems with is configuring the web.xml file to find
the
>servlet. I started with
>
><servlet-mapping>
>       <servlet-name>ExitReplacement</servlet-name>
>       <url-pattern>/ipshtml/exit.htm</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>       <servlet-name>ElcomExit</servlet-name>
>       <url-pattern>/elcomhtml/exit.htm</url-pattern>
>  </servlet-mapping>
>
>but calls to either ipshtml/exit.htm and elcomhtml/exit.htm both return
>404.
>If I change to
>
><servlet-mapping>
>       <servlet-name>ExitReplacement</servlet-name>
>       <url-pattern>/exit.htm</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>       <servlet-name>ElcomExit</servlet-name>
>       <url-pattern>/exit.htm</url-pattern>
>  </servlet-mapping>
>
>then Tomcat logs that it's removing duplicate exit.htm's during startup
and
>calls to both /ipshtml/exit.htm and /elcomhtml/exit.htm resolve to
>ElcomExit. If I reverse the order of the servlet mapping entries then
both
>resolve to ExitReplacement.
>
>So, how do I map /ipshtml/exit.htm to ExitReplacement and
>/elcomhtml/exit.htm to ElcomExit when both ExitReplacement and
ElcomExit
>exist in the same Tomcat Web Application.
>
>I hope that this makes sense.
>
>Regards
>Roger
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to