196 CHAPTER 4: Building a Web Application Using Struts 2
As you can see in the directory structure there is a single BookController in the application.
The methods in this controller are illustrated in the Listing 4-39.
Listing 4-39. BookController
- public class BookController extends ActionSupport {
- //properties
- public String login() {}
- public String executelogin() {}
- public String error() {}
- public String allBooks() {}
- public String booksByCategory() {}
Figure 4-23. Directory structure with the data access layer