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 apache struts cve 2017 5638?
What is the use of namespace in action mapping in Struts2?
What is struts in java with example?
Explain about the future of struts?
How do u provide security to ur project?(Banking domain project)
What is execute method in struts?
What is the different actions available in struts?
Explain the life cycle of a request in struct2 application?
How to work with error tags?
How do you create message resource?
How to get data from the velocity page in a action class?
How we can install struts?
What is the front controller in struts2?
What’s the utilization of struts.xml configuration file?
What’s the difference between struts and espresso?