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
How do I access token?
What are inner class and anonymous class?
How client side validation is enabled on a jsp form?
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
How can duplicate form submission be handled in struts 2?
How do you convert struts to springs?
How properties of a form are validated in Struts?
What is the purpose of @conversion annotation annotation?
How is forward action used for integration?
Can you explain the directory structure for a struts folder in brief ?
What do you know about validation plugin ?
What are result types in struts?
What is the design role played by struts?
What configuration changes are required to use resource files in Struts?
What do you mean by a custom tag?