Answer Posted / styphy
In Struts-1x there will be only one instance of action
class. Hence it is not thread safe and the programmer has to
make sure that the code is thread safe.
In Struts 2x Action objects are instantiated for each
request, so there are no thread-safety issues. (In practice,
servlet containers generate many throw-away objects per
request, and one more object does not impose a performance
penalty or impact garbage collection.)
Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is the difference between validation.xml and validator-rules.xml files in struts?
What is the purpose of @results?
What are the Core classes of Struts Framework?
What is ognl?
Why do we need mapdispatchtoprops?
What is struts-default package and what are it’s benefits?
What are the bundled validators?
Explain the necessity of empty tag?
What are action errors and error?
What are the classes used as part of struts framework ?
What is the purpose of @action annotation?
What are the reasons for an error message not being displayed while developing struts application?
What is discontinuous strut?
What are the action classes in struts?
Can we handle exceptions in Struts programmatically?