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 defeult result type?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What applications use apache struts?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
What is jakarta struts framework?
What is difference between struts1 and struts2?
How does one create an action in struts 2?
What is the purpose of action tag in struts.xml?
Why are springs better than struts?
Why it called struts?
Explain the components of struts?
How is the action mapping specified?
Explain integrate log4j in struts2 application?
Which file is used by controller to get mapping information for request routing?