A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
HttpServletRequest in Struts2 Interceptor
Navin Pillu
Ranch Hand
Joined: Apr 19, 2005
Posts: 103
posted
Dec 02, 2009 04:03:37
0
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
actionInvocation.getInvocationContext().getSession();
but don't know how can we get the Request object.
Thanks
Navin
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Dec 02, 2009 05:41:14
0
Look at the source code for the "servletConfig" interceptor; it accesses the request.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: HttpServletRequest in Struts2 Interceptor
Similar Threads
struts2 interceptors
Struts2 FileUpload - request is nulled
Logout is not properly working in struts2 please help me
setting attribute in struts2.
migration to Struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter