Using wildcard character in web.xml in Tomcat 5  
Author Message
jumptiger





PostPosted: 2004-5-22 16:17:00 Top

java-programmer, Using wildcard character in web.xml in Tomcat 5 I am trying to achieve the following:

<url-pattern>/a*</urlpattern> then go into servlet A. This would
include /a, /aa, /abc/123 etc.

I notice that servlet 2.4 doesn't treat * as a wildcard character in
this case. Therefore, servlet A would only be called if the URL is
exactly /a*.

I need to create this pattern for all characters and numbers except
when the path starts with '/_'. Therefore, I can not use a '/*'
notation. Can anyone suggest a workaround to this issue?

Thanks,
TC