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

How struts2 supports internationalization?

1118


What are the bundled validators?

1012


What are the some useful annotations introduced in struts2?

972


What is lookupdispatchaction?

1023


How many servlet controllers are used in a Struts Application?

1124


How is declarative handling of exceptions done in struts ?

925


What are different ways to create Action classes in Struts2?

1094


What validate() and reset() method does ?

1091


What is jakarta struts framework?

974


What kind of mvc is struts 2?

1022


What is the purpose of @validations annotation?

1011


What is dispatch action class?

1088


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

1005


Why we use struts over servlets?

1068


What are the two different types of validations that the validator framework supports?

949