Struts Controller Components (cont'd)
- The controller receives all requests and decides which action to take on
the basis of the request's action attribute.
- Each action request is mapped to an Action
class that does the
work of esponding to the request.
- Mappings are made in the struts-config.xml file. Here are the
action-mappings elements in struts-config.xml for the
banking application
- Note that the login action is mapped to the LoginAction
class in the banking application
- Note that action elements also set "forwarding" actions in the
case of login success or failure