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
Can we have multiple struts config files ?
What is lookupdispatchaction?
When do I need “struts.jar” on my classpath?
List some struts tag libraries?
How many struts config file in a struts application?
What are the components of struts?
Can you explain value stack?
How many struts config file can be created in struts?
How can forward action be used to restrict a strut application to mvc?
Mark the differences between html tags and strut specific html tags.
What do you mean by actionservlet?
Why we use struts in java?
Which interceptor is responsible for file upload support?
Who wrote struts?
What is the purpose of @emailvalidator?