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

Explain struts?

968


What is the purpose of @before annotation?

953


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

874


What is the actionform?

975


Which design pattern the interceptors in struts2 is based on?

869


how to develop the submit and search operations in single jsp using struts?

2925


What is the purpose of action-mappings tag in struct-config.xml?

918


What is strut web xml?

887


What is spring and struts in java?

916


Whats the difference between the default namespace and the root namespace?

943


Can we handle exceptions in Struts programmatically?

927


Are interceptors thread safe?

952


What is struts framework in java?

891


What are the steps used to setup dispatch action?

969


Name some of the features of struts2?

973