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 strut action mapping?
What is the purpose of @key annotation annotation?
What are the core classes of struts framework? Explain
Name the different types of actions found in struts.
What are result types in struts?
How can we handle exceptions thrown by application in Struts2?
How can forward action be used to restrict a strut application to mvc?
Why are frameworks used?
How to display validation errors on jsp page?
What is the purpose of @key?
Can we handle exceptions in Struts programmatically?
What is the use of Struts.xml configuration file?
What is the purpose of @emailvalidator?
Explain about the validation steps which have to be carried during validation of client-side address?
Which interceptor is responsible for file upload support?