This chapter will show how to put together what we’ve learned, by creating a simple application consisting of multiple pages and multiple ActionBeans. Our application will contain the following: LoginActionBean, which will be used to authenticate users; ApplicationMenuActionBean, which displays a menu to the user; and Page1ActionBean and Page2ActionBean, which are accessible from our menu. We also have a UserDAO object, which is a mock Data Access Object used to look up and authenticate usernames and passwords.
Login
We will start with the most complex ...