Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpServletRequest in Struts2 Interceptor

 
Navin Pillu
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the source code for the "servletConfig" interceptor; it accesses the request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic