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 struts2 in java?

527


What is the purpose of execute() method?

567


What is the purpose of @createifnull annotation annotation?

615


What are different ways to create Action classes in Struts2?

585


What is apache struts vulnerability?

541






What is the purpose of @result?

577


How action-mapping tag is used for request forwarding in struts configuration file?

580


What is the use of token interceptor in Struts2?

615


what is meant by Struts Validator Framework?

561


How can link tag’s action attribute be used?

520


What are struts in java?

502


List the important attribute and elements of action mapping under struts.

524


What is the use of interceptor?

517


How you will display validation fail errors on jsp page?

538


What are the steps required for setting up validator framework in struts?

559