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...

When wil use singleton class in Struts

Answer Posted / nikel

In struts 1.x version Action class follows Single Instance Multiple Threaded model.hence WebContainer creates object for a Action class per Session basis.so Action class is not ThreadSafe.But we can make it ThreadSafe by Synchronization mechanism.

But in Struts 2.x version Action class obj is created by WebContainer per request basis.So Action class is always threadsafe.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2878


Explain the components of struts?

1022


Explain integrate log4j in struts2 application?

1069


What is the flow of requests in struts based applications?

1031


What is the purpose of redirect result type?

1065


Explain the life cycle of a request in struct2 application?

967


What is used to display the intermediate result in an interceptor?

1000


What is lookupdispatchaction?

1078


How do you convert struts to springs?

1092


What are the bundled validators?

1052


What do you know about validation plugin ?

1007


Is struts mvc framework?

983


Explain design patterns which is used in struts?

1028


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

1066


What is the purpose of '@keyproperty'?

1070