wood burning stoves 2.0*
The moose likes Struts and the fly likes From Struts2: When an ActionContext Object is created? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "From Struts2: When an ActionContext Object is created?" Watch "From Struts2: When an ActionContext Object is created?" New topic
Author

From Struts2: When an ActionContext Object is created?

Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi,

Can you please explain, when a request comes to the server, at which stage 'ActionContext' Object will be available, i.e when Struts2 framework creates this object? Thankyou.
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Please help on this or provide related link. Thankyou.
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi,

I came to know that framework creates the ActionContext object during server/container startup and makes a pool. When a request comes, framework gets the ActionContext from the pool, creates ThreadLocal object and sets ActionContext object upon it. Is it true or it follows another approach? Please reply. Thankyou.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: From Struts2: When an ActionContext Object is created?