Java Reference
In-Depth Information
Figure 4-23. Directory structure with the data access layer
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
1. public class BookController extends ActionSupport {
2.
3. //properties
4.
5. public String login() {}
6.
7. public String executelogin() {}
8.
9. public String error() {}
10.
11. public String allBooks() {}
12.
13. public String booksByCategory() {}
14.
 
Search WWH ::




Custom Search