wood burning stoves
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 Building Microservices this week in the Design 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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: From Struts2: When an ActionContext Object is created?
 
It's not a secret anymore!