How does Interceptors help achieve Struts2 a better framework than Struts1 ?
In the Struts 2.x most of the trivial work are made easier to achieve for example automatic form population. Intelligent configuration and defaults for example you can have struts.xml or annotation based configuration and out of box interceptors can provide facilities that a common web application needs.
Now Struts2 can be used anywhere in desktop applications also, with minimal or no change of existing web application,since actions are now POJO.POJO actions are even easier to unit test.Thanks to interceptors
Easier UI and validation in form of themes and well known DOJO framework.
Highly pluggable,Integrate other technologies like Spring,Hibernate etc at ease.
Ready for next generation RESTFUL services.
Read More →