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 purpose of struct-config.xml in struct2?
What is difference between actionform and dynaactionform?
How do you find the struts version being used in a project?
Explain about struts?
What are the features of struts 2?
Can I have html form property without associated getter and setter formbean methods?
What is the use of Struts.xml configuration file?
What is the difference between filters and interceptors ?
What is the purpose of @after annotation?
What is the default location of result pages and how can we change it?
What are the classes used as part of struts framework ?
What is container struts2?
What do struts do?
Explain struts?
What is the purpose of @doublerangefieldvalidator annotation?