Is struts thread safe?

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


Please Help Members By Posting Answers For Below Questions

What are the life cycle methods of interceptor?

514


Where should struts xml be placed?

496


How can we work with error tags?

544


What is the purpose of dispatcher result type?

549


What is meant by custom tags?

569






What configurations are stored in struts configuration file ?

530


What do you mean by inner class and anonymous class?

590


What is struts in j2ee?

517


How to explain Software Bank Loan descriptions

1895


What are the loop holes of struts?

558


Can you explain the directory structure for a struts folder in brief ?

518


How many instances of servlet usually run in a struts application ?

533


What do you mean by action errors and what are the results they force?

568


What is the difference between struts and spring?

517


How do you create message resource?

580