I'd like to use this kind of a pattern for my Java web app:
<url-pattern>/*/test.html</url-pattern>
and then parse the URL in the servlet to get what the value of the star is, and use that value to query a different table in the database.
However this seems to be an illegal pattern for Tomcat. Is there any way I can achieve this without having to hard code the bit between the slashes?
(example uses in case you're wondering what the context is: /vancouver-hotel/rooms.html
, /seattle-hotel/rooms.html
)