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 thread safe?

Answer Posted / javablossom

struts 1.x is threadsafe and struts 2.x is not thread safe
Reference:
In Struts1, Action resources must be thread-safe or
synchronized. So Actions are singletons and thread-safe,
there should only be one instance of a class to handle all
requests for that Action. The singleton strategy places
restrictions on what can be done with Struts1 Actions and
requires extra care to develop. However in case of Struts
2, Action objects are instantiated for each request, so
there are no thread-safety issues.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of @doublerangefieldvalidator?

1012


What is the purpose of @after annotation?

982


How can we display validation errors on jsp page?

970


What is the purpose of @after?

970


What is the purpose of @key annotation annotation?

1032


How many action classes can be used in struts application?

929


What does apache struts do?

868


What is struts validator framework?

933


How action mapping is configured in Struts?

1044


How can forward action be used to restrict a strut application to mvc?

934


Who wrote struts?

923


What are the steps of struts installation?

953


How we can configured action mapping in struts?

967


What is difference between actionform and dynaactionform?

972


What is difference between interceptors and filters?

975