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 flow of requests in struts based applications?

1030


What is the difference between validation.xml and validator-rules.xml files in struts?

965


What is the purpose of @createifnull annotation annotation?

1083


What is the purpose of @stringlengthfieldvalidator annotation?

1148


What is the purpose of @beforeresult?

1054


Difference between struts and spring? Or why use spring, if you are already using struts?

1018


What is java struts?

993


What is difference between actionform and dynaactionform?

1091


What is dispatch action class?

1134


what is ACID test for fresh engineers??what is the pattern??

2874


How long do struts last?

981


What's mvc pattern ?

1071


What is switchaction?

1212


What is the use of resourcebundle.properties file in Struts Validation framework?

1114


How to get data from the velocity page in a action class?

1008