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 ValueStack and OGNL?

995


Will the struts tags support other markup languages such as wml ?

921


What is struts and springs in java?

966


Explain the difference between dispatchaction and lookupdispatchaction in struts?

6295


Explain struts.devmode?

925


What are the features of struts 2?

964


Can explain about the validations and in your project where did u used the validations?

7477


Explain about the future of struts?

887


Which design pattern is implemented by Struts2 interceptors?

943


How to use forward action to restrict a strut application to mvc?

996


What is http forward?

921


Are interceptors thread safe?

951


What is dispatchaction?

1036


What is the default suffix for struts2 action uri ?

919


How struts 2 validation works?

1009