Which is the better framework for web applications, struts or
spring, and why?
Answer / 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 |
what about web architecture?
What is the difference between comparable and comparator in java.util pkg?
What is the use of the list interface in the java collection? : java collections
What are the considerations to be made in case of loops in java ?
What is the use of log4j and how to make use of that in a application?
What is java collection? : java collections
Difference between Spring framework and Struts framework?
12 Answers IBM, L&T, VAM,
What are the different types of ways where you can iterate over a list? : java collections
who should use JNDI?
what is the difference between through and throws?
What do you understand by synchronization? Why is it important?
What is the enumerator of the java collection framework? : java collections