This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why is struts used in spring project for UI when spring itself has full fledged MVC on its own.

 
Monica Shiralkar
Ranch Hand
Posts: 843
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen projects where Spring IOC is used and struts has been used for UI but this confuses me because Spring had full fledged MVC on its own so when one is used Spring then why use Struts instead of using Spring MVC..?
thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monica. Shiralkar wrote:I have seen projects where Spring IOC is used and struts has been used for UI but this confuses me because Spring had full fledged MVC on its own so when one is used Spring then why use Struts instead of using Spring MVC..?
thanks


Many possible reasons. Number being that they already had a Struts web app for a while before they brought in Spring and didn't want to have to re-write everything again like a big bang change.

Maybe they like Struts better than Spring MVC.

Many reasons.

Mark
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a) Lot of people familiar in the team with struts.
b) Existing code based on struts
c) Struts is good framework with plugin to add reusable components

and so on. Like Mark says a lot of reasons.

Is there a particular reason you asked the question (only trying to ask to see if there was a use case the OP had in mind and there might be a more specific answer.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic