A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Scope of action method in struts2
Joined: May 11, 2011
May 19, 2011 00:28:11
What is the scope of an action method in struts2? I am guessing it is session based but i would like to know if there is any way to make an action method's scope to be application level.
Joined: Oct 29, 2001
May 19, 2011 05:58:08
A new instance of an action is created with each HTTP request, so the scope of a method is request. You can access the session by implementing
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: Scope of action method in struts2
Struts2: scriptlet with tag
Spring + struts2 DI problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014