O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The LogonAction Class

The LogonAction class shown below is posted to by the logon form through the Struts controller. This action validates the user logon to determine whether or not the user has entered a valid login name and password. If the user has entered a valid login and password, then control is transferred through the Struts controller back to the main menu. At this point the main menu recognizes the login process has succeeded (because the user's session environment has changed) and displays the main menu based on the user's environment.

If, however, the user has not entered a valid user name and password, then control is transferred to a logon error page, which informs the user of the error and allows him or her to either proceed back ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required