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

How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2965


Which components are available using actioncontext map?

1172


What is the flow of requests in struts based applications?

994


Does struts include its own unit tests?

1020


What is life cycle of an interceptor?

1058


How we can configured action mapping in struts?

1014


What is struts in j2ee?

944


What is the purpose of @element annotation annotation?

1086


What is the purpose of @before annotation?

1012


What is the purpose of @results?

1002


What is interceptor struts2?

1013


How exceptions are handled in struts application?

1160


Describe the mvc on struts?

959


What are pull and push mvc architecture and which architecture does struts2 follow?

933


What is the purpose of action tag in struts.xml?

1023