Solved

Common - Difference between Spring and Struts

Posted on 2007-04-06
5
3,890 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 39
Free Alternative to JIRA 4 91
get weblogic logged in user in java 2 58
even odd program using while loop 3 29
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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.

895 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

18 Experts available now in Live!

Get 1:1 Help Now