Answer Posted / vijay
Struts 1 Actions are singletons and must be thread-safe
since there will only be one instance of a class to handle
all requests for that Action. The singleton strategy places
restrictions on what can be done with Struts 1 Actions and
requires extra care to develop. Action resources must be
thread-safe or synchronized.
Struts 2 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 ? | 53 Yes | 16 No |
Post New Answer View All Answers
What is the differences between struts1 and struts2?
What are action errors?
Explain struts?
What is spring hibernate and struts in java?
What are pull and push mvc architecture and which architecture does struts2 follow?
What is the role of action class?
Explain the life cycle of a request in struct2 application?
What is the purpose of @key annotation annotation?
What’s the difference between struts and espresso?
How does struts2 token work?
What are the pros of struts 2?
What are the two types of validations supported by validator framework?
What are the advantages of spring mvc over struts mvc?
What is struts and why it is used?
What are the various struts tag libraries?