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 the purpose of @element?

1017


What is struts?

992


What is struts framework?

990


What is the use of web xml in struts2?

915


What is the purpose of @before?

994


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

960


What is struts.devmode?

1059


How to work with error tags?

969


How can we group related actions in one group in Struts?

975


Is struts action class singleton?

1002


What is struts actionmapping?

954


Describe the mvc on struts?

964


How do struts work?

941


When do I need “struts.jar” on my classpath?

981


What is the procedure of operation of a form tag?

972