Can anybody help me on changing or adding new parameters to request(HttpServletRequest) object?
I haven't found a method like
setParameter(String argParamName,String argParamValue)
Thanks...
Discussions
Web tier: servlets, JSP, Web frameworks: How to replace/add parameters of request object
-
How to replace/add parameters of request object (3 messages)
- Posted by: Burak AKSOY
- Posted on: September 15 2002 08:03 EDT
Threaded Messages (3)
- How to replace/add parameters of request object by Santosh Mani on September 16 2002 00:13 EDT
- How to replace/add parameters of request object by Burak AKSOY on September 16 2002 01:06 EDT
- How to replace/add parameters of request object by Leonard Gurevich on September 16 2002 01:31 EDT
- How to replace/add parameters of request object by Burak AKSOY on September 16 2002 01:06 EDT
-
How to replace/add parameters of request object[ Go to top ]
- Posted by: Santosh Mani
- Posted on: September 16 2002 00:13 EDT
- in response to Burak AKSOY
That is an unusual requirement.
I had to achieve the same thing once while creating a base class to represent a JUnit test case to test a servlet. We were forced to write our own implementation of the Servlet interface and add the setParameter method as an additional method.
What's your scenario like? -
How to replace/add parameters of request object[ Go to top ]
- Posted by: Burak AKSOY
- Posted on: September 16 2002 01:06 EDT
- in response to Santosh Mani
We have some web beans which adjust its output according to a parameter "ActionType" , but before this web bean produces its output some times it is necessary to change "ActionType" to another value than submitted by the user. This is the case ... -
How to replace/add parameters of request object[ Go to top ]
- Posted by: Leonard Gurevich
- Posted on: September 16 2002 01:31 EDT
- in response to Burak AKSOY
You can do it with Filters and RequestWrapper.
If you would download netBeans you'd be able to see examples (just select advanced filter template)