File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
DynaValidatorForm question:
Passing a parm to a DispatchAction without a form?
struts action for the root context
mock exam question on filters
Struts + I18N