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 |
What is the purpose of @doublerangefieldvalidator?
what is the difference between model1 and model2 architecture in struts?
What is apache struts framework?
How Struts internally works? For Example if we type the URL "/login.do" how the process goes internaly? How the struts-config.xml loaded?
Are struts still used?
What are the two different types of validations that the validator framework supports?
What are disadvantages of Struts?
When should be opt for struts framework?
Please can you tell me ,where can we used the MVC other than web applications.
How nested beans can be used in Struts applications?
What is http forward?
Can you explain aware interfaces in struts2?