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

Explain about logic match tag?

0 Answers  


When wil use singleton class in Struts

7 Answers  


Why we use struts over servlets?

0 Answers  


Describe validate() and reset() methods.

0 Answers  


What’s the difference between struts and espresso?

0 Answers  






How struts 2 validation works?

0 Answers  


What is the purpose of constant tag in struts.xml?

0 Answers  


Can we have multiple struts config files in a single web app?

0 Answers  


Which interceptor is responsible for i18n support?

0 Answers  


What is apache struts cve 2017 5638?

0 Answers  


State the procedure for using forward attribute of link tag’s.

0 Answers  


What is the purpose of plug-in tag in struct-config.xml?

0 Answers  


Categories