I need a workaround with this URL mapping in web.xml to create URLs with a letter followed by "_" followed by any combination of alphanumeric characters.
I want to map the servlet to something like this:
/something_*
Instead:
/something/*
Using different "things" for different JSPs. Example:
/search_Something-I-searched-for
I tried using:
<servlet-mapping> <servlet-name>MyServlet</servlet-name> <url-pattern>/something_*</url-pattern> </servlet-mapping>
But this does not seem to work. This answer tells me that I cannot do this in web.xml, so there may be a workaround.
I don't know if this information is important, but I use JBoss and Struts2 in my project.
Fernando Briano Jan 29 '09 at 14:23 2009-01-29 14:23
source share