We need to understand the differences between spring and struts. This is a very basic interview question. So we need to refresh our mind before going to any java interview.
Differences Between Spring and Struts
|Java-J2ee framework software||J2ee based web framework software|
|Can be used to develop all kinds of java-j2ee applications including web applications||Should be used only to develop web Applications|
|Provides abstraction layer on multiple java-j2ee technologies including servlets, jsps also provides abstraction layer on other framework softwares||Provides abstraction layer only on servlets and jsp core technologies|
|Gives built-in middle ware services||Doesn’t give built-in middle ware services|
|Light Weight software||Heavy Weight software|
|All spring applications are given based on dependency injection principle||All struts applications will be developed based on MVC-2 architecture.|
Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in IT industry more than 7 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting and Website Development.
I am a self learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.