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 default suffix for struts2 action uri ?
How can you create your custom interceptor in struts 2?
What is java struts?
How can we work with error tags?
What is actionservlet?
What are the pros of struts 2?
What do you know about validation plugin ?
What design patterns are used in struts?
What helpers in the form of jsp pages are provided in struts framework?
What is the purpose of @expressionvalidator annotation?
What is the purpose of @after?
How to build struts application in eclipse?
What is switchaction?
What are the major differences between html tags and strut specific html tags?
When do I need “struts.jar” on my classpath?