• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 2949
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
You can't have everything. Where would you put it?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic