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 naming convention for a resource bundle file in struts2?

1034


What is purpose of execandwait interceptor?

1152


What are pull and push mvc architecture and which architecture does struts2 follow?

966


Explain the complete struts validator framework.

1067


What is the front controller in struts2?

1005


How can we upload files in Struts2 application?

1076


What is the use of struts?

1021


Are struts and shocks the same?

963


Define struts?

1088


How do u provide security to ur project?(Banking domain project)

4924


What is struts in j2ee?

984


What are action errors and error and what are the consequences they impose?

1051


Which model components are supported by Struts?

1080


How can we group related actions in one group in Struts?

1017


What is the purpose of interceptors?

1048