Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Scope of action method in struts2  RSS feed

 
Arjun Murthy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!