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

Who wrote struts?

1026


State the procedure for using forward attribute of link tag’s.

1008


What are the some useful annotations introduced in struts2?

1030


Which configuration file is used for storing jsp configuration information in struts?

1061


how does request processor relates to action mapping?

961


How is the action mapping specified?

1014


Is struts action class singleton?

1049


What is dispatch action class?

1137


Explain design patterns which is used in struts?

1029


Why was reload removed from struts (since 1.1)?

1028


What are the important methods of actionform?

1145


How does interceptor work in struts2?

984


Explain struts?

1091


Name the different types of actions found in struts.

1049


What are the various struts tag libraries?

992