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: 183
posted
0
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
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.
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.)