What is the differences between struts1 and struts2?



What is the differences between struts1 and struts2?..

Answer / Amit Gupta

Struts 1 uses XML configuration files (struts-config.xml) for defining actions, while Struts 2 uses annotations (@Action, @ActionMapping, etc.). Struts 2 provides better integration with other frameworks like Spring, Hibernate, and OGNL. Struts 2 has a cleaner architecture due to the use of action interceptor chains, which makes it more modular.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

How can we handle exceptions thrown by application in Struts2?

1 Answers  


diffrence between dispatch action and lookupdispatch action write simple web appliction (insert records in database)

8 Answers   Athena Health Care, Symphony, TCS,


What is the use of token interceptor in Struts2?

1 Answers  


What are the cons of struts 2?

1 Answers  


What are the two different types of validations that the validator framework supports?

1 Answers  


what is use of assert keyword in java..?

1 Answers  


What does modeldriven interceptor?

1 Answers  


What does execandwait interceptor?

1 Answers  


What are the struts2 error message keys that can come during file uploading process?

1 Answers  


What does validation interceptor?

1 Answers  


What is struts and springs in java?

1 Answers  


How many servlet controllers are used in a Struts Application?

1 Answers  


Categories