I would like to use this template for my Java web application:
<url-pattern>/*/test.html</url-pattern>
and then parse the servlet url to find out what the star value is and use that value to query another table in the database.
However, this seems like an illegal pattern for Tomcat. Is there a way I can achieve this without having to hardcode the bit between the slash?
(example used if you are wondering what is the context: /vancouver-hotel/rooms.html, /seattle-hotel/rooms.html)
source
share