Difference between Spring framework and Struts framework?

Answer Posted / anjaneyulu

Struts framework is mainly used for WebApplications Actully Struts framework is all are classes not implements theinterface.

whenever develop applicatoion in two ways:
1.Programming through interface
2.Programming through class
Struts drawbacks:

1.better way is Programming through interfaces so that struts not support that(i.e all are predifined class.. Action,DiaspatchAction,SwitchAction)
2.This framework is tightcoupling.it is not separated layerwised
3.It is not Suuport to DependencyInjection
4.We have to hard code to use
applications like hibernate, jdbc, etc.

SPRING:
overcome the above problems Spring will be introduced
Spring Application develop through Interface
It suport DI.
It is layerwise designed.
It is loosecoupling
Spring suport MVC and Other MVC
Spring Application allways flow DesginPatterns
Spring support to POJO'S AND POJI(i.e it is not api dependent)
spring without hard coding in application as spring supports
classes hibernate, jdbc, and many more. This is very little
to say about spring. There are many features to be known.

Is This Answer Correct ?    40 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is mean by hasing and maping in java platform and advantage?

1829


What are maps interfaces in the java collections? : java collections

573


What are the different types of ways where you can iterate over a list? : java collections

574


What are the types of interface used in the java collections? : java collections

588


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

1876






What are the different types of features of the java collections framework? : java collections

574


Which interface does java.util.hashtable implement?

673


Should we create system software ( e.g operating system ) in java ?

578


What are the main classes of the list interfaces? : java collections

576


What are the queues in the java collection framework? : java collections

550


What are the differences between the java collection and the java list? : java collections

613


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1614


What do you understand by synchronization? Why is it important?

574


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

560


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1818