0

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 problem after migrated to another web container or application server.

Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert