?
Solved

Common - Difference between Spring and Struts

Posted on 2007-04-06
5
Medium Priority
?
3,896 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18866483
0
 
LVL 30

Accepted Solution

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
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:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

764 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