In Struts 2
you can develop only web based application. However, spring’s usefulness is not
limited to server-side development. Any java application can benefit from spring
in terms of simplicity, testability, and loose coupling.
Comparing features:
·
both allow configuration via XML or annotations
·
both follow the MVC pattern
·
both have interceptors for cross-cutting concerns
·
both allow for "controller" style action classes
·
both are stable and mature
·
both have actions that are POJOs and return Strings as results
·
both making unit testing simple
API of Spring
MVC has better documentation. The Struts2 guides and tutorials on the Struts2
site are not well documented.
All
most you can do anything in spring that is also very easily achievable in
struts2 (in concern of web application).
I thing
both are excellent for bulling web application.
No comments:
Post a Comment