• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpServletRequest in Struts2 Interceptor  RSS feed

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