File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2- Unable to figure out the concept of ActionContext object creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2- Unable to figure out the concept of ActionContext object creation" Watch "Struts 2- Unable to figure out the concept of ActionContext object creation" New topic
Author

Struts 2- Unable to figure out the concept of ActionContext object creation

Eshan Kapoor
Ranch Hand

Joined: May 15, 2013
Posts: 37

In Struts 2 processing of each request occurs in a single thread. The ActionContext is thread local which means that values stored in the ActionContext are unique per thread. So is it true that a new ActionContext object is created per request which has its own ValueStack? Say after a request is served and a new request is fired, will the old ActionContext object and its ValueStack be destroyed and a new object be created with its own ValueStack?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2- Unable to figure out the concept of ActionContext object creation