The LoginAction Class
Here is the definition of the LoginAction
class.
- The execute() method uses the form bean passed to it
and attempts to authenticate the user
- Authentication proceeds using classes and interfaces written
for the application in the
service and view packages included under
WEB-INF/classes
- Here, authentication is trivial, looking for user name "123" and
password "456"
- A real application would, e.g., look up user permissions in a database