Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use of HttpServletRequestWrapper

 
joseph lam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joseph,
We have a forum dedicated to Struts.
Your question will probably do better there so I'll move it for you.

-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic