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...

Is it possible to create mulitple instance of one Action
Class in struts?

Answer Posted / sitaram

Only one instance of action class is created per
application, as we know for each request container will
create separate thread hence for 100 request 100 theads will
be creates and that 100 request can handle
concurrently...(which is executing execute() method of
action class's single instance) i.e. you can say class
variable of action class is not at all thead safe.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need mapdispatchtoprops?

871


What are the steps required for setting up validator framework in struts?

1014


What is includeaction?

995


List some struts tag libraries?

951


What does the term struts mean?

988


What are the some useful annotations introduced in struts2?

976


How nested beans can be used in Struts applications?

1004


What are the core classes of the struts framework?

940


What validate() and reset() method does ?

1093


Can we have multiple struts config files ?

962


What is the use of resourcebundle.properties file in Struts Validation framework?

1066


What is purpose of execandwait interceptor?

1093


What is the purpose of @createifnull annotation annotation?

1043


What is container struts2?

991


Which model components are supported by Struts?

1032