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 are the life cycle methods of interceptor?
Where should struts xml be placed?
How can we work with error tags?
What is the purpose of dispatcher result type?
What is meant by custom tags?
What configurations are stored in struts configuration file ?
What do you mean by inner class and anonymous class?
What is struts in j2ee?
How to explain Software Bank Loan descriptions
What are the loop holes of struts?
Can you explain the directory structure for a struts folder in brief ?
How many instances of servlet usually run in a struts application ?
What do you mean by action errors and what are the results they force?
What is the difference between struts and spring?
How do you create message resource?