Is struts thread safe?
Answers were Sorted based on User's Feedback
Answer / eugene gruzin
Struts is not only thread safe, it is thread dependant.
Struts instansiate each Action only once and allow all
other request to be handled by the same action
| Is This Answer Correct ? | 23 Yes | 8 No |
Answer / 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 |
Answer / naresh
Struts frame work is thread safe onle. we can make a struts
as non thread safe using servlet page as Single thread
model,and jsp using the page attribute isThreadSafe.
| Is This Answer Correct ? | 8 Yes | 18 No |
How is declarative handling of exceptions done in struts ?
What are the contents on web.xml in struts application ?
Hai all.What is the use of <logic:iterate>tag in struts application.
What is the difference between session scope and request scope when saving formbean ?
How do you create message resource?
struts is thread safe or not ?give me answer as early as possible
What are the cons of struts 2?
What is Request Dispatcher and what is Request Process?
What is the need of struts?
Explain about the library tag?
Is Struts Action class Thread Safe?
How to carryout the validations in struts if the validator frame work cant handle the validation