This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I am trying to set up a simple java program that can do the following:
* Takes in a ' given url' such as '/places/australia'
* Takes in a list of URL mappings such as ["*.do", *jsp, "/places", "/places/aust"]
I want to do this to investigate exactly which given URL's will match against the servlet and filter mappings given in a web.xml file. My initial guess was to use the standard Java Pattern and Matcher classes as per below:
However when I ran the code I got the following exception:
This would imply that the standard java regex classes are not used for matching the URL's in web.xml.
Does anyone know of the class library tomcat or a similar container uses to determine if a given url matches the web.xml mappings?