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 naming convention for a resource bundle file in struts2?
What is purpose of execandwait interceptor?
What are pull and push mvc architecture and which architecture does struts2 follow?
Explain the complete struts validator framework.
What is the front controller in struts2?
How can we upload files in Struts2 application?
What is the use of struts?
Are struts and shocks the same?
Define struts?
How do u provide security to ur project?(Banking domain project)
What is struts in j2ee?
What are action errors and error and what are the consequences they impose?
Which model components are supported by Struts?
How can we group related actions in one group in Struts?
What is the purpose of interceptors?