Solved

Common - Difference between Spring and Struts

Posted on 2007-04-06
5
3,891 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:Mayank S
ID: 18866483
0
 
LVL 30

Accepted Solution

by:
Mayank S 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:Mayank S
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 84
servlet  URL Rewriting 1 36
varialbe initialization 11 33
Java: How do I open the default windows program for a given file type 3 28
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

770 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