Hi All!

I want to map a single servlet to multiple URLs.

Ofcourse in web.xml I could do this, which works fine:

  <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/one/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/two/*</url-pattern>
  </servlet-mapping>

But I know that for instance Resin supports the "url-regexp" tag, so I could
do:

  <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-regexp>/(one|two)/.*</url-regexp>
  </servlet-mapping>

Which I think is much neater :) Is there any way to do this using Tomcat 5.5
?

Tanx!

Regards,
Paul Hamer

management & development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[EMAIL PROTECTED] 


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

Reply via email to