Learn Java for Web Development

(Tina Meador) #1

184 CHAPTER 4: Building a Web Application Using Struts 2


When the user submits a valid name and password combination, the user will be logged in, and the
user’s name is displayed as illustrated in Figure 4-15.


Figure 4-14. Login page of the bookstore application


Figure 4-15. Login successful


If the user enters an incorrect username or password, an error message will be displayed to the user,
as illustrated in Figure 4-16.

Free download pdf