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

What is ValueStack and OGNL?

1045


Name the different types of actions found in struts.

983


What is the purpose of form-be tag in struct-config.xml?

946


What do you mean by tiles in struts?

1028


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

1012


How do I access token?

966


What is the purpose of execute() method?

1066


What is validate() and reset() functions?

1028


How tag libraries are defined in Struts?

985


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

989


How do you create message resource?

998


Explain how can we upload files in struts2 application?

1039


What do you mean by actionform?

973


What is meant by custom tags?

959


What does validation interceptor?

986