• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3900
  • Last Modified:

Common - Difference between Spring and Struts

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
amateur83
Asked:
amateur83
  • 3
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
0
 
Mayank SAssociate Director - Product EngineeringCommented:
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
 
amateur83Author Commented:
in that case, i can use hibernate with struts?
0
 
boonlengCommented:
>> 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now