Is struts thread safe?

Answers were Sorted based on User's Feedback



Is struts thread safe?..

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

Is struts thread safe?..

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

Is struts thread safe?..

Answer / vijay chaudhary

No,
Struts is not thread safe

Is This Answer Correct ?    6 Yes 13 No

Is struts thread safe?..

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

Post New Answer

More Struts Interview Questions

What is struts-default package and what are it’s benefits?

0 Answers  


What is front controller in struts2?

0 Answers  


What applications use apache struts?

0 Answers  


What is difference between spring and struts?

0 Answers  


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

0 Answers  






What are Struts2 core components?

0 Answers  


How do I access token?

0 Answers  


why we are using vo,dao and dto design patterns in struts framework

3 Answers   Wipro,


How can forward action be used to restrict a strut application to mvc?

0 Answers  


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

0 Answers  


why do we typecast ActionForm into out plain java bean class in Action class?

5 Answers  


How can we display all validation errors to user on jsp page?

0 Answers  


Categories