Answer Posted / nikel
In struts 1.x version Action class follows Single Instance Multiple Threaded model.hence WebContainer creates object for a Action class per Session basis.so Action class is not ThreadSafe.But we can make it ThreadSafe by Synchronization mechanism.
But in Struts 2.x version Action class obj is created by WebContainer per request basis.So Action class is always threadsafe.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?
Explain the difference between jakarta struts and apache struts?
How an actionform bean is created?
What is the apache struts vulnerability?
What do you mean by actionform?
What is the use of form bean in struts?
Can you explain custom tag?
What's mvc pattern ?
Who makes the struts?
What is controller in struts ?
Does Struts2 action and interceptors are thread safe?
What is package name in struts xml?
What is the purpose of @requiredstringvalidator annotation?
Which components are available using actioncontext map?
How you will display validation fail errors on jsp page?