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 difference between vector and arraylist?.

4 Answers   C DAC, HCL,


Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;

5 Answers   Adobe,


what are callback methods?

3 Answers   iFlex,


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

1 Answers   HCL,


wnet use DAO design in u r project?

1 Answers   Godrej,






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

0 Answers   NSN,


What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


Q1. A. Write note on "The class path Environment Variable". B. Which are different kinds of source code? Q2. A. How to create an interface? B. Why convert an applet to an application? Q3. A. How to use Media tracker Class. B. How to use string tokenizer class. Q4. A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on "The properties class" Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

1 Answers  


How do you debug your java program?

2 Answers   HCL, Inforica,


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

0 Answers  


who should use JNDI?

1 Answers  


What is IOC in spring?

10 Answers   Centris,


Categories