aspose file tools*
The moose likes Struts and the fly likes Scope of action method in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Scope of action method in struts2" Watch "Scope of action method in struts2" New topic
Author

Scope of action method in struts2

Arjun Murthy
Greenhorn

Joined: May 11, 2011
Posts: 10
Hi,

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.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

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 SessionAware.


"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
 
Similar Threads
Struts2 redirect...
Struts2
Struts2: scriptlet with tag
struts2 problem
Spring + struts2 DI problem