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 struts framework?

944


What is actioninvocation?

919


Can we have multiple struts config files in a single web app?

911


What is struts?

946


What is the use of web xml in struts2?

863


How to upload struts file?

983


Can you give an overview of how a struts application flows?

925


What is the use of jsonvalidation in struts?

944


What is the difference between struts1 and struts2?

885


Is there a particularly good ide to use with struts?

885


How an actionform bean is created?

942


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

1035


How struts 2 validation works?

1028


What is struts and springs in java?

992


What is spring and struts in java?

935