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 struts actionmapping?
What is spring hibernate and struts in java?
Explain about the process of functioning of the struts program?
How many instances of servlet usually run in a struts application ?
What are action errors and error?
What are the classes used in struts?
How can we upload files in Struts2 application?
What is the use of lookupdispatchaction?
What is the purpose of @requiredstringvalidator?
Why it called struts?
How client side validation is enabled on a jsp form?
What is struts in j2ee?
What are the steps required for setting up validator framework in struts?
What is the purpose of @conversion annotation annotation?
What are the two different types of validations that the validator framework supports?