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 purpose of @element?
What is struts?
What is struts framework?
What is the use of web xml in struts2?
What is the purpose of @before?
What is used to display the intermediate result in an interceptor?
What is struts.devmode?
How to work with error tags?
How can we group related actions in one group in Struts?
Is struts action class singleton?
What is struts actionmapping?
Describe the mvc on struts?
How do struts work?
When do I need “struts.jar” on my classpath?
What is the procedure of operation of a form tag?