T
TC
I am trying to achieve the following:
<servlet-mapping>
<servlet-name>servletA</servlet-name>
<url-pattern>/a*</url-pattern>
</servlet-mapping>
This should include /a, /aa, /abc/123 etc.
I notice that servlet 2.4 doesn't treat * as a wildcard character in
this case. Therefore, servletA 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 '/_' (which in this case the broser should
simply display the resource as requested). Therefore, I can not use a
'/*'
notation. Can anyone suggest a workaround to this issue?
Thanks,
TC
<servlet-mapping>
<servlet-name>servletA</servlet-name>
<url-pattern>/a*</url-pattern>
</servlet-mapping>
This should include /a, /aa, /abc/123 etc.
I notice that servlet 2.4 doesn't treat * as a wildcard character in
this case. Therefore, servletA 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 '/_' (which in this case the broser should
simply display the resource as requested). Therefore, I can not use a
'/*'
notation. Can anyone suggest a workaround to this issue?
Thanks,
TC