The Struts 2 Framework
Struts 2 is a new release of the older Struts1 web application framework. It is a completely new framework, based on the architecturally esteemed WebWork framework. Struts 2 is a second generation web application framework that implements the Model-View-Controller (MVC) design pattern. From the previous version of struts now we have certainly new things to learn, interceptors & OGNL (Object-Graph Navigation Language) in particular. The whole point of design patterns such as MVC is the reuse of solutions to common problems. Reusing solutions at the architectural level provides an easy transferal of experience and knowledge.
The MVC Pattern
The MVC pattern provides a separation of concerns that applies well to the domain of web applications. Separation of concerns allows us to manage the complexity of large software systems by dividing them into high level components. The MVC design pattern identifies three distinct concerns: model, view and controller. In Struts 2 these concerns are implemented by the action, result and FilterDispatcher, respectively.
How Struts 2 Works
In the framework,ValueStack is simply a storage area that holds all of the application domain data associated with the processing of a request. and last one OGNL, is a powerful expression language that allows you to reference and manipulate the data on the ValueStack.