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.|