• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!