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 / avani

Struts will create a single instance of the Action and
allow multiple threads to invoke execute(). This allows for
faster request processing, as the framework is not
continually creating new Action instances to handle each
request. But because a single object is shared between
multiple threads, you must observe proper threading
considerations, as other threads are likely to pummel
instance variables that hold state in the action.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are frameworks used?

1049


List the important attribute and elements of action mapping under struts.

1035


Can we have more than one struts-config.xml file for a single struts application?

978


Where should struts xml be placed?

990


Explain about the library tag?

1043


How we can install struts?

1056


How many struts config file in a struts application?

976


How to get data from the velocity page in a action class?

1012


What is a custom tag?

975


Explain the difference between plain-validator and field-validator in struts?

1008


How you will enable front-end validation based on the xml in validation.xml?

1159


What are the classes used as part of struts framework ?

994


What is switchaction?

1216


Can you explain value stack?

969


Explain struts?

1090