Reputation: 2083
I'm stumped. I thought &
AND ;
were valid delimiters for a query parameter.
It seems that tomcat 7 HttpServletRequest.getParameterValues("key")
won't recognize my parameter when it is like this:
http://acme.com/my.jsp?x=1;y=2;z=3
If I go here, there is mention of the semi-colon:
http://en.wikipedia.org/wiki/Query_string
Is there a way to force tomcat 7 to recognize them within this method? Or is there a better method to use?
Thanks.
Upvotes: 1
Views: 436
Reputation: 2083
For closure, this is the bug report outlining why tomcat 7 does not recognize a semicolon as a separator within the query parameter
https://issues.apache.org/bugzilla/show_bug.cgi?id=39740
The last comment before it was marked as "won't fix" is that this can be resolved by implementing a custom filter. Which is of course true.
Thanks to everyone who responded.
Upvotes: 1