![]() |
HttpServlet implementation in Tomcat 4.1
Hello,
I want to modify the parameters of the instance of the implantation of HttpRequest given in my sevlet before I do a forward of the request and the response to an another servlet. But there isn't any setParameter method to do that. So how can I do that? Thanks for your answers. Laurent Beaubier |
Re: HttpServlet implementation in Tomcat 4.1
Laurent Beaubier (free.fr) wrote:
> Hello, > I want to modify the parameters of the instance of the implantation of > HttpRequest given in my sevlet before I do a forward of the request and the > response to an another servlet. > But there isn't any setParameter method to do that. So how can I do that? > Thanks for your answers. > Laurent Beaubier Have you considered extending HttpServletRequestWrapper? It has a nice constructor which takes an HttpServerletRequest as an argument. You could just override the getParameter* methods and add you own mechanism to set or delete the parameters of interest. |
| All times are GMT. The time now is 08:18 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.