> Hi All,
>
> Is it possible to change the contents of the request object. What I
> basically
> intend to do is the HttpServletRequest object has a query string, I want
> to
> change the values or if possible to eliminate the query string in the
> request
> object in the query string and pass along the request object to another
> method.
>
> Any help in this regard would be of great help.
>
> Thanks,
>
> Prasad M
There is no way to alter the query string (or parameters) of the request
object, so I can think of three alternatives:
1) Write your other method to ignore the query arguments you dont want <VBG>
2) Write your own class implementing the HttpServletRequest interface as a
wrapper around the request object and have it ignore the query arguments you
don't want, then pass that to the other method.
3) Implement the "other method" as a servlet, possibly the same servlet, and
use a
RequestDispatcher to invoke it. You cannot remove the query arguments this
way,
but you can (effectively) change them.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html