This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

use of HttpServletRequestWrapper  RSS feed

 
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?
 
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
Boost this thread!