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 flow of requests in struts based applications?
What is the difference between validation.xml and validator-rules.xml files in struts?
What is the purpose of @createifnull annotation annotation?
What is the purpose of @stringlengthfieldvalidator annotation?
What is the purpose of @beforeresult?
Difference between struts and spring? Or why use spring, if you are already using struts?
What is java struts?
What is difference between actionform and dynaactionform?
What is dispatch action class?
what is ACID test for fresh engineers??what is the pattern??
How long do struts last?
What's mvc pattern ?
What is switchaction?
What is the use of resourcebundle.properties file in Struts Validation framework?
How to get data from the velocity page in a action class?