This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "use of HttpServletRequestWrapper" Watch "use of HttpServletRequestWrapper" New topic
Author

use of HttpServletRequestWrapper

joseph lam
Greenhorn

Joined: Oct 10, 2003
Posts: 18
hi,

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?

thanks,
joe

-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
Greenhorn

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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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

-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use of HttpServletRequestWrapper