List of Figures

 

Chapter 1. Struts 2: the modern web application framework

Figure 1.1. The Java Servlet API exposes the HTTP client/server protocol to the Java platform. Struts 2 is built on top of that.

Figure 1.2. The organization of the Servlet API: servlets, web applications, and the servlet container

Figure 1.3. Struts 2 MVC is realized by three core framework components: actions, results, and the FilterDispatcher.

Figure 1.4. Struts 2 request processing uses interceptors that fire before and after the action and result.

Chapter 2. Saying hello to Struts 2

Figure 2.1. Declaring your Struts 2 application architecture with XML or annotations

Figure 2.2. The sample application is organized into several mini-applications.

Figure 2.3. The exploded directory structure of our Struts 2 sample application

Figure 2.4. The first page collects the user’s name.

Figure 2.5. The second page presents the customized greeting, built from the submitted name.

Figure 2.6. Anatomy of a URL: mapping a URL namespace to a Struts 2 action namespace

Figure 2.7. Every action is placed on the ValueStack so that its properties are exposed to framework-wide OGNL access.

Chapter 3. Working with Struts 2 actions

Figure 3.1. Much of the framework’s functionality is obtained by extending the struts-default package.

Figure 3.2. The default workflow interceptor returns us to the input form with validation error messages displayed on the appropriate fields.

Chapter 4. Adding workflow with interceptors