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

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

4876


How to override the default error message that can come during file uploading process?

1059


1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

3193


Are the struts tags xhtml compliant ?

939


What do struts do?

973


What is pojo in struts2?

1004


Mark the differences between html tags and strut specific html tags.

973


Are struts still used?

933


What is life cycle of an interceptor?

1058


How to handle exceptions in structs?

1130


What is execute method in struts?

940


What is the use of jsonvalidation?

1137


Why we use struts in java?

928


What is s token?

992


How can we work with error tags?

991