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 ValueStack and OGNL?
Will the struts tags support other markup languages such as wml ?
What is struts and springs in java?
Explain the difference between dispatchaction and lookupdispatchaction in struts?
Explain struts.devmode?
What are the features of struts 2?
Can explain about the validations and in your project where did u used the validations?
Explain about the future of struts?
Which design pattern is implemented by Struts2 interceptors?
How to use forward action to restrict a strut application to mvc?
What is http forward?
Are interceptors thread safe?
What is dispatchaction?
What is the default suffix for struts2 action uri ?
How struts 2 validation works?