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


Please Help Members By Posting Answers For Below Questions

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

591


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

601


What are the interfaces in java collections? : java collections

619


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1594


What is an algorithm in java collection framework? : java collections

585






What is iterator in the java collections framework? : java collections

543


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

584


What are the considerations to be made in case of loops in java ?

573


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2567


What is the use of hashcode in java ?

583


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1602


How is hashset maintained in memory by java ?

597


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

619


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

577


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1685