This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HttpServletRequest in Struts2 Interceptor" Watch "HttpServletRequest in Struts2 Interceptor" New topic

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.

David Newton

Joined: Sep 29, 2008
Posts: 12617

Look at the source code for the "servletConfig" interceptor; it accesses the request.
I agree. Here's the link:
subject: HttpServletRequest in Struts2 Interceptor
It's not a secret anymore!