Is struts thread safe?

Answer Posted / javablossom

struts 1.x is threadsafe and struts 2.x is not thread safe
Reference:
In Struts1, Action resources must be thread-safe or
synchronized. So Actions are singletons and thread-safe,
there should only be one instance of a class to handle all
requests for that Action. The singleton strategy places
restrictions on what can be done with Struts1 Actions and
requires extra care to develop. However in case of Struts
2, Action objects are instantiated for each request, so
there are no thread-safety issues.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the procedure of operation of a form tag?

556


What are action classes in struts?

520


How to build struts application in eclipse?

529


What is the purpose of @customvalidator annotation?

576


What is action class? What are the types of action class?

532






Which components are available using actioncontext map?

726


What is interceptor in Struts2?

570


What are the 5 constants of action interface?

546


Explain struts.devmode?

569


What do you mean by ognl?

555


How is token generated?

538


Why is it called struts?

539


Does apache struts run on windows?

537


Does apache tomcat use struts?

512


Is struts action class singleton?

553