Is Struts Action class Thread Safe?

Answer Posted / shakthi kumar

Action class is not thread safe, multiple threads will be
created for multiple requests to execute method, there is
no point in creating instance for each request. Also,
Action class is not a servlet, it just acts as an
intermediate between your business delegator (Action
Servlet) and your business layer only if designed properly.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give an alternative way to protect jsp’s with not much features from direct access.

550


Which design pattern is implemented by Struts2 interceptors?

550


What is interceptor struts2?

530


How do struts work?

518


What is the use of interceptor?

518






What are the action classes in struts?

517


Give the details of xml files used in validator framework?

583


What is the purpose of @requiredstringvalidator annotation?

527


What do you mean by the abstract package in struts2, and what is its utilization?

507


What are Struts2 core components?

556


What is jakarta struts framework?

560


What is the purpose of @doublerangefieldvalidator annotation?

552


What is the different actions available in struts?

542


What is the struts in java?

501


What is the life cycle of actionform?

548