is struts (1 or 2?) used strictly for MVC type architecture or is there more to it?
reason I am asking is I am looking at a web application and they seem to be using both spring and struts.
is struts (1 or 2?) used strictly for MVC type architecture or is there more to it?
reason I am asking is I am looking at a web application and they seem to be using both spring and struts.
Spring was supporting Struts almost from the beginning. Struts is used as MVC (sorta DTO delivery mechanizm to the backend) and all the backend logic is handled by Spring providing IoC and mapping to the Struts. Read more here and here
Spring is a many-headed beast, and can be used for all kinds of applications, web and otherwise. When you use Spring for a web application, you can go all the way and use Spring's very own MVC framework for handling the web-specific portions of your application. But you don't have to. The back end aspects of Spring - that is, all the beans that make up the various components of your application and the various Spring tools you use with them (transaction management, security etc) can be used with any front end. Explicit plug-ins are available to integrate Spring with Struts, Struts 2, and some others, but even that is optional and you can use Spring without any MVC framework at all.
To summarize:
Is struts (1 or 2?) used strictly for MVC type architecture or is there more to it?
Hmm... Struts 2 (AKA WebWork 2) is a MVC framework like Spring MVC or Stripes Framework. They are all alternatives and target the presentation layer (and only the presentation layer).
Reason I am asking is I am looking at a web application and they seem to be using both spring and struts.
Using Struts 2 (or Stripes) doesn't exclude using Spring for Dependency Injection (and other services). In other words, you don't have to use Spring MVC at the presentation layer level to use Spring at other levels. Actually, most frameworks (this is at least true for Struts 2 and the Stripes framework) do provide nice Spring integration which is somehow something mandatory because of Spring popularity.