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 ...
Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.