Originally posted by Salvador Cecilio:
Hmmm didn't know you could modify parameters.
I'm looking at the API of the HttpRequestWrapper and would use the getParameter() method to access the parameter.
The question I have is how do you modify the parameter values when data has been submitted via querystring or posted.
As Paul shows, you don't actually change the parameters but by wrapping the request you make your application see the kind of values you want it to see. When the app asks the request for a parameter, it doesn't know that the request is wrapped and giving it a special, new-and-improved version of the original parameter.
Wrapping the request is like gold-plating costume jewelry. You're not changing the original product (only coating it), yet you fool everyone into thinking the product is better than it really is!