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 is the difference between empty default namespace and root namespace?

1135


What's mvc pattern ?

1013


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

1055


How to work with error tags?

962


How struts2 supports internationalization?

1122


What is struts 2 framework in java?

1037


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

1027


What is the naming convention for a resource bundle file in struts2?

988


At the point, you should go for struts framework?

929


Are actions thread safe?

977


Name the different types of actions found in struts.

990


How do I access token?

968


What is struts2 in java?

1044


What does i18n interceptor?

1044


List some bundled validators?

992