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

What’s the difference between struts and turbine?

1100


What is struts and why it is used?

890


Explain about the process of functioning of the struts program?

979


How action-mapping tag is used for request forwarding in struts configuration file?

910


What are the sections into which a strut configuration file can be divided?

998


Can you explain struts validator framework?

965


Are interceptors and filters different?

957


What is the purpose of @results annotation?

1202


What validate() and reset() method does ?

1014


What is struts actionmapping?

891


What are action errors and error and what are the consequences they impose?

948


Explain design patterns which is used in struts?

920


What is struts xml?

792


What are the core classes of struts framework? Explain

947


Describe the basic steps used to create a tiles application?

1027