Struts and webwork has joined together to develop the Struts 2 Framework. Struts 2 Framework is very extensible and elegant for the development of enterprise web application of any size. In this section we are going to explain you the architecture of Struts 2 Framework.
Request Lifecycle in Struts 2 applications
Image: Struts 2 high level overview of request processing:

Struts 2 Architecture
Struts 2 is a very elegant and flexible front controller framework based on many standard technologies like Java Filters, Java Beans, ResourceBundles, XML etc.
For the Model, the framework can use any data access technologies like JDBC, EJB, Hibernate etc and for the View, the framework can be integrated with JSP, JTL, JSF, Jakarta Velocity Engine, Templates, PDF, XSLT etc.
Exception Handling:
The Struts 2 Framework allows us to define exception handlers and inceptors.
Struts 2 Architecture
The following diagram depicts the architecture of Struts 2 Framework and also shows the the initial request goes to the servlet container such as tomcat, which is then passed through standard filer chain.
Image: Struts 2 Architecture

The filter chain includes:
In this section we have learnt about the Architecture
of Struts 2 Framework.
|
Recommend the tutorial |







Ask Questions? Discuss: Struts 2 Architecture - Detail information on Struts 2 Architecture View All Comments
Post your Comment