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 purpose of form-beans tag in struct-config.xml?

721


How is token generated?

755


How is a lookup dispatch action created?

762


What are the components of struts framework?

778


What do you mean by tiles in struts?

745


Explain struts.devmode?

744


how to connect from struts to database through hibernet and where u can modify the class

2295


What is apache struts used for?

685


How an actionform bean is created?

741


What is the role of action class?

756


Describe validate() and reset() methods.

779


What is the purpose of @conversion annotation annotation?

894


How tag libraries are defined in Struts?

784


What is the use of namespace in action mapping in Struts2?

777


Are interceptors thread safe?

756