It's not a secret anymore!
The moose likes Struts and the fly likes use of HttpServletRequestWrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "use of HttpServletRequestWrapper" Watch "use of HttpServletRequestWrapper" New topic

use of HttpServletRequestWrapper

joseph lam

Joined: Oct 10, 2003
Posts: 18

does anyone know how to modify a httpservletrequest in a struts action? (I know I can use httpservletrequestwrapper, but how/where do we set it? since the "request" in "action" is discarded after execute(.) -it's scoped locally.) In other words, how do we modify the request before the resource specify in "ActionForward" is executed?


-I am waiting for download of struts source to see how the request is passed/used with ActionForward - that is, the class that "drives" the action...which might show some clues.
joseph lam

Joined: Oct 10, 2003
Posts: 18
ok - it looks like I can extend org.apache.struts.action.RequestProcessor and/or use ComposableRequestProcessor for this - Is there an easier way, anyone?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

We have a forum dedicated to Struts.
Your question will probably do better there so I'll move it for you.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: use of HttpServletRequestWrapper
It's not a secret anymore!