gurpeet singh wrote:
but does struts as an implementation of Front controller pattern means that it CANNOT be used in the business/infrastructure layer of our web application ?
For the most part, yes, but that statement comes with a caveat: Struts has a lot of functionality that is not strictly part of the Front Controller pattern (the ModelDriven interface, for instance) that may intrude into the "business logic" part of an application.
gurpeet singh wrote:
also what about spring ? can we use spring in both the presentation layer and business/infrastructure layer ?
I haven't worked with Spring, but from what I understand it is a more comprehensive framework, including front end functionality (Spring Web) as well as back-end tasks (Security, ORM).
gurpeet singh wrote:
can we say that spring is superset of struts in that it can do whatever struts 2 can do but not vice versa ?
I would say that they are frameworks that take two different approaches to making developers more productive. You would be hard pressed to find a use case for Spring that could not be done in Struts. Whether or not it is easier with one framework or the other is left up to the developer to decide.
You can also use Spring in conjunction with Struts, to make the decision process even murkier.