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
How can duplicate form submission be handled in struts 2?
How we can install struts?
What is the naming convention for a resource bundle file in struts2?
Can you explain custom tag?
Give an example of validates method used to avoid errors.
What is apache struts vulnerability?
Explain about logic match tag?
what is meant by Struts Validator Framework?
What is the purpose of form-beans tag in struct-config.xml?
What is the difference between struts and spring? Explain
For a single Struts application, can we have multiple struts-config.xml files?
What is java struts?
What is the front controller in struts2?
What does modeldriven interceptor?
How does interceptor work in struts2?