aspose file tools*
The moose likes Spring and the fly likes why is struts used in spring project for UI when spring itself has full fledged MVC on its own. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "why is struts used in spring project for UI when spring itself has full fledged MVC on its own." Watch "why is struts used in spring project for UI when spring itself has full fledged MVC on its own." New topic
Author

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

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

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.)


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
 
 
subject: why is struts used in spring project for UI when spring itself has full fledged MVC on its own.