Which is the better framework for web applications, struts or
spring, and why?
Answer Posted / shrinath
down vote
Struts is perhaps the first Model-2 MVC framework for web
applications.
Spring has its own Model-2 MVC framework and much, much
more. It's got dependency injection, aspect-oriented
programming, and terrific libraries for making your life
easier when you deal with JDBC, ORM, JMS, LDAP, remoting,
and other Java EE technologies.
I strongly disagree with the previous statement made about
XML hell and no productivity benefit. I think it's
overstating a prejudice. Besides, Spring has added enough
annotations where it's possible create a complete
application without XML (except for perhaps one or two
global tags).
I'd recommend Spring over Struts and any other framework
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the use of hashcode in java ?
What are the different types of features of the java collections framework? : java collections
What are the main classes of the list interfaces? : java collections
What do you understand by synchronization? Why is it important?
What is java collection? : java collections
What is the difference between comparable and comparator in java.util pkg?
my interviewer asked me what technical specification you used how to answer that question
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
Which sorting algorithm is used by collections.sort() in java ?
What are the uses of the set interfaces in the java collections? : java collections
What is the use of the list interface in the java collection? : java collections
What is deque in the java collections framework? : java collections
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
What are the types of the main implementing classes in the map interfaces? : java collections
What are the different types of collections views being provided by the map interface? : java collections