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 is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys 2 In which way does a Primitive data type is passed ? Sun- Microsystems 4 what is the use of declaring constructor as private? Sai- Softech 5 what is difference between global methods and local methods? 1 What is meant by class loader and how many types are there? Apple 1 what is meaning of JIT? 4 What is an abstract class? Wipro 5 what is filters and its use? Virtusa 2 why is multiple inheritance not allowed in java? Elementus-Technologies 7 Differences between jdk 1.4 and 1.5 Wipro 4 is JVM platform dependent or independent..? IBM 6 what is main purpose of abstract class? 5 what is difference between colection and collections? Tech-Mahindra 11 What error occurs if a try-catch-finally statement sequence does not have a catch clause? 2 Explain the difference between scrollbar and scrollpane? 1 Explain the differences between public, private, protected and static? 4 Explain the difference between getAppletInfo and getParameterInfo? 1 Is Cegonsoft Pvt.Ltd. a good Institute? 4 Why only one Class is public in one file? Explain in details. Thanks in Advance. 11 Which method will get invoked first in a stand alone application?

2333


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

588


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

546


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

555


What are the interfaces in java collections? : java collections

623






How do I find jre path in windows?

535


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


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

1616


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

584


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

605


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

1607


What is java collection? : java collections

590


What are the types of java collections? : java collections

551


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

577


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

580