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
How struts2 supports internationalization?
What are the bundled validators?
What are the some useful annotations introduced in struts2?
What is lookupdispatchaction?
How many servlet controllers are used in a Struts Application?
How is declarative handling of exceptions done in struts ?
What are different ways to create Action classes in Struts2?
What validate() and reset() method does ?
What is jakarta struts framework?
What kind of mvc is struts 2?
What is the purpose of @validations annotation?
What is dispatch action class?
What is the default location of result pages and how can we change it?
Why we use struts over servlets?
What are the two different types of validations that the validator framework supports?