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 ACID test for fresh engineers??what is the pattern??
Explain the components of struts?
Explain integrate log4j in struts2 application?
What is the flow of requests in struts based applications?
What is the purpose of redirect result type?
Explain the life cycle of a request in struct2 application?
What is used to display the intermediate result in an interceptor?
What is lookupdispatchaction?
How do you convert struts to springs?
What are the bundled validators?
What do you know about validation plugin ?
Is struts mvc framework?
Explain design patterns which is used in struts?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the purpose of '@keyproperty'?