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

Does Struts2 action and interceptors are thread safe?

672


Can I have html form property without associated getter and setter formbean methods?

668


What are disadvantages of Struts?

635


What is the purpose of @conversion?

694


Why do the struts tags provide for so little formatting?

672






What is strut action mapping?

602


Explain the necessity of empty tag?

674


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

609


What is the purpose of @emailvalidator?

648


Which design pattern is implemented by Struts2 interceptors?

651


What is xml based validation in struts2?

641


What are the two types of validations supported by validator framework?

670


What is struts validator framework?

631


Why it called struts?

638


Are struts still used?

591