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
What is the purpose of @doublerangefieldvalidator?
What is the purpose of @after annotation?
How can we display validation errors on jsp page?
What is the purpose of @after?
What is the purpose of @key annotation annotation?
How many action classes can be used in struts application?
What does apache struts do?
What is struts validator framework?
How action mapping is configured in Struts?
How can forward action be used to restrict a strut application to mvc?
Who wrote struts?
What are the steps of struts installation?
How we can configured action mapping in struts?
What is difference between actionform and dynaactionform?
What is difference between interceptors and filters?