Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is Struts Action class Thread Safe?

Answer Posted / styphy

In Struts-1x there will be only one instance of action
class. Hence it is not thread safe and the programmer has to
make sure that the code is thread safe.

In Struts 2x Action objects are instantiated for each
request, so there are no thread-safety issues. (In practice,
servlet containers generate many throw-away objects per
request, and one more object does not impose a performance
penalty or impact garbage collection.)

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of struct-config.xml in struct2?

981


What is difference between actionform and dynaactionform?

1047


How do you find the struts version being used in a project?

942


Explain about struts?

964


What are the features of struts 2?

1061


Can I have html form property without associated getter and setter formbean methods?

1013


What is the use of Struts.xml configuration file?

933


What is the difference between filters and interceptors ?

1157


What is the purpose of @after annotation?

1032


What is the default location of result pages and how can we change it?

1009


What are the classes used as part of struts framework ?

961


What is container struts2?

996


What do struts do?

978


Explain struts?

1051


What is the purpose of @doublerangefieldvalidator annotation?

1032