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

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

568


Which design pattern is implemented by Struts2 interceptors?

559


How do u provide security to ur project?(Banking domain project)

4453


What is form bean in struts?

521


What is execute method in struts?

501






Describe the two types of formbeans.

589


What is struts framework?

556


How to handle exceptions in structs?

580


What is the use of execAndWait interceptor?

575


how does request processor relates to action mapping?

495


Which class is the Front Controller in Struts2?

552


What is the use of struts?

527


What configuration changes are required to use resource files in Struts?

576


What are the important methods of actionform?

594


What is front controller in struts2?

559