wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts 2 actions and thread safety Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 actions and thread safety" Watch "Struts 2 actions and thread safety" New topic
Author

Struts 2 actions and thread safety

Priety Sharma
Ranch Hand

Joined: Jun 10, 2008
Posts: 156

Are the struts 2.x actions thread safe?

Priety.
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
Yes, its thread safe, struts2 creates a new instance of the action class for every request that it processes. So unless you've written something special to make an instance of of an action class created by one thread, accessible by another thread, you don't need to worry about other threads modifying the values in your action class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 actions and thread safety
 
Similar Threads
where to write session related code
action class instance
Struts 2 actions thread safe
[solved]Struts 2 and Vaadin
JSP Form data lost while back to same Action (struts 2)