The dispatchOption Action
- When the user makes a selection and submits the page (clicking the Do
It button), the selected string is sent as the value of the
options parameter in the HTTP request
- Struts then translates the
request into the
dispatchOptionForm bean
- Struts passes control to the dispatchOption
action
- as specified in the html:form tag's action attribute
- The DispatchOptionAction
class then forwards to either
AddTeam.jsp or AddPlayer.jsp, depending on the
option specified in the form bean.