Java, Software Development

Query String in HTML Form’s Action

I have worked with IBM Netcool/Portal and had the need to pass some channel parameters across pages without storing the values as request or session attributes. Altering URLs (href’s) is fine but the parameters vanish as soon as the user submits the page via HTTP Post. Fortunately, the following is possible.

Tested on Tomcat 7.0.11.

This is not a good practice though and may cause a problem after migrating to another web container or application server.

Got comments, or suggestions? Please visit our Facebook page!

You Might Also Like