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
Does Struts2 action and interceptors are thread safe?
Can I have html form property without associated getter and setter formbean methods?
What are disadvantages of Struts?
What is the purpose of @conversion?
Why do the struts tags provide for so little formatting?
What is strut action mapping?
Explain the necessity of empty tag?
List the important attribute and elements of action mapping under struts.
What is the purpose of @emailvalidator?
Which design pattern is implemented by Struts2 interceptors?
What is xml based validation in struts2?
What are the two types of validations supported by validator framework?
What is struts validator framework?
Why it called struts?
Are struts still used?