Solved

Common - Difference between Spring and Struts

Posted on 2007-04-06
5
3,888 Views
Last Modified: 2013-11-24
I've been doing struts for months and now moving to spring. I do some study online but cannt really differentiate between the two. While struts implements the MVC, the spring also divided into the presentation, business n controller layer. So, what are the differences between the two?
0
Comment
Question by:amateur83
  • 3
5 Comments
 
LVL 30

Expert Comment

by:mayankeagle
ID: 18866483
0
 
LVL 30

Accepted Solution

by:
mayankeagle earned 125 total points
ID: 18866526
Basically Struts focusses more on the presentation layer and gives you an MVC framework for handling interactions from your web front-end with your business logic.

Spring is more generic and offers more than Struts. It provides an MVC framework for using J2EE technology features without tight-coupling your code to a specific technology. Springs and Struts can also co-exist. Spring also provides plumbing to manage related resources, e.g., Hibernate sessions, contrainer transactions, etc
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 18866533
0
 
LVL 2

Author Comment

by:amateur83
ID: 18867139
in that case, i can use hibernate with struts?
0
 
LVL 14

Expert Comment

by:boonleng
ID: 18869395
>> in that case, i can use hibernate with struts?
Yes.
You can refer to the following tutorial:
http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now