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 struts framework in java?
List some struts tag libraries?
Will the struts tags support other markup languages such as wml ?
What is struts framework?
What is the purpose of @before annotation?
What is purpose of execandwait interceptor?
What is token used for?
What is the use of namespace in action mapping in Struts2?
What are the contents on web.xml in struts application ?
Mark the differences between html tags and strut specific html tags.
What are Struts2 core components?
What is the use of execAndWait interceptor?
What do you mean by dynaactionform?
What are action errors?
What is the purpose of @conversion?