Can a url-pattern in a web.xml file use the query string to determine the match such as:
<security-constraint>
<web-resource-collection>
<web-resource-name>myServletTest</web-resource-name>
<url-pattern>/myServlet?test=one</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
Or is that invalid or will it just match myServlet ignoring the query string?
According to section 12.1 of the Java Servlet Specification Version 3.0 Rev a:
I don’t know what the exact result will be, but it won’t be the result you’re after since the parameters will be stripped before any servlet is chosen to process the request.
What prohibits you from simply using a different path?