Which is the better framework for web applications, struts or
spring, and why?



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

Post New Answer

More Java J2EE AllOther Interview Questions

what is jndi?

2 Answers  


what is filter ?

2 Answers   SolutionNET,


What is the use of log4j and how to make use of that in a application?

2 Answers  


Explain JSP life cycle?

2 Answers   Accenture,


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

0 Answers  






Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

1 Answers   HCL,


i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com

1 Answers  


Why do you use Context Object

2 Answers   HCL,


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


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

0 Answers  


How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }

6 Answers   Cap Gemini, TCS,


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.

0 Answers  


Categories