Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   HttpServlet implementation in Tomcat 4.1 (http://www.velocityreviews.com/forums/t124028-httpservlet-implementation-in-tomcat-4-1-a.html)

Laurent Beaubier \(free.fr\) 07-03-2003 08:58 PM

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



Sudsy 07-03-2003 09:58 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57