What is the difference between struts1 and struts2?
Answer / Sarika Chaudhari
The main differences between Struts 1 and Struts 2 are: Architecture (Struts 1 follows the classic MVC pattern, while Struts 2 uses a plugin-based architecture), Dependency Injection (Struts 2 uses dependency injection, whereas Struts 1 uses service locator), Configuration files (Struts 1 uses struts-config.xml, while Struts 2 uses annotations or XML configuration), and Default Action Mapping (In Struts 1, the default action mapping is performed by ActionServlet, whereas in Struts 2, it's handled by DispatchAction).
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the difference between dispatchaction and lookupdispatchaction in struts?
What is the purpose of redirect result type?
What is the use of lookupdispatchaction?
In struts, how can we access java beans and their properties?
How is the mvc design pattern used in struts framework?
What is use of i18n interceptor?
what is use of assert keyword in java..?
What is difference between actionform and dynaactionform?
in struts how to use hibernate with struts>
What is jakarta struts framework?
What is struts and why it is used?
Explain about the library tag?