CHAPTER 4: Building a Web Application Using Struts 2 189
Figure 4-19 illustrates the login screen with the header. When the authentication is successful, the
user is logged in, and the home page with the menu bar is rendered, as illustrated in Figure 4-20.
If the username or password is invalid, the user remains on the login screen, and an error message is
displayed, as illustrated in Figure 4-21.
Figure 4-18. Template for the bookstore application
Figure 4-19. Login screen with header