This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes HttpServletRequest in Struts2 Interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HttpServletRequest in Struts2 Interceptor" Watch "HttpServletRequest in Struts2 Interceptor" New topic
Author

HttpServletRequest in Struts2 Interceptor

Navin Pillu
Ranch Hand

Joined: Apr 19, 2005
Posts: 103
Hi All

I've a doubt about Struts2 Interceptor. I want a HttpServletRequest object in the interceptor which should be threadsafe. We can get Session using but don't know how can we get the Request object.

Thanks
Navin
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Look at the source code for the "servletConfig" interceptor; it accesses the request.
 
Don't get me started about those stupid light bulbs.
 
subject: HttpServletRequest in Struts2 Interceptor
 
Similar Threads
Struts2 FileUpload - request is nulled
migration to Struts2
Logout is not properly working in struts2 please help me
struts2 interceptors
setting attribute in struts2.