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

multiple instances for action class is it possible

Answer Posted / thirupathaiah

It is possible by making the action class as singletone but
the thing is it is not good aproach if we make it singleton
then while handling the multiple requests for each request
a seperate instance will be created, according to this
waste of memory and for each request action class life
cycle is defferent so do't go for making action as a
singleton

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

1104


In how many ways duplicate form submission can occurs?

958


What is the purpose of @key annotation annotation?

1041


What is the difference between struts and spring? Explain

873


Is struts action class singleton?

947


How you will enable front-end validation based on the xml in validation.xml?

1030


What are the some useful annotations introduced in struts2?

944


What are the struts2 error message keys that can come during file uploading process?

1028


What is the role of a handler in mvc based applications?

1182


Why are frameworks used?

951


What are the major differences between html tags and strut specific html tags?

897


What is the purpose of @validations annotation?

961


What is execute method in struts?

888


What does validation interceptor?

941


What are the advantages of spring mvc over struts mvc?

877