Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Eshan Kapoor
Ranch Hand
Posts: 39
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!