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 configuration files are used in struts?
What does apache struts do?
What’s the difference between struts and espresso?
What are the life cycle methods of interceptor?
Explain how to work with error tags?
What is the purpose of @key?
Can we have more than one struts-config.xml file for a single struts application?
How can we handle exceptions thrown by application in Struts2?
Why do we need struts?
What is meant by custom tags?
Is struts 1 still supported?
What is the difference between plain-validator and field-validator?
What is the purpose of @beforeresult annotation?
What are the components of struts framework?
What are inner class and anonymous class?