A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Scope of action method in struts2
Spring + struts2 DI problem
Struts2: scriptlet with tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014