Declarative Exception Handling
- There is no try-catch in LoginAction's execute()
method to handle the InvalidLoginException
- Instead, a global-exceptions
element is added to struts-config.xml
- Tells framework to retrieve an error message from the web
application's resource bundle (discussed later)
- Forwards request to login.jsp which picks up the error
messages from an ActionForm object (discussed next)