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 difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

1174


Explain the difference between jakarta struts and apache struts?

938


How an actionform bean is created?

968


What is the apache struts vulnerability?

940


What do you mean by actionform?

973


What is the use of form bean in struts?

911


Can you explain custom tag?

971


What's mvc pattern ?

1003


Who makes the struts?

943


What is controller in struts ?

984


Does Struts2 action and interceptors are thread safe?

1076


What is package name in struts xml?

1000


What is the purpose of @requiredstringvalidator annotation?

930


Which components are available using actioncontext map?

1164


How you will display validation fail errors on jsp page?

932