An Action for Showing Options
Here is the showoptions
action element from struts-config.xml.
Ultimately, this
action will result in a page (options.jsp)
allowing the user to choose a basketball
database option, but first those options must be created:
- Done by
the execute() method in the ShowOptionsAction
class
- differs from the login action in that the form bean passed to it
(optionsForm) is used to set rather than get bean
properties
- Specifically, the options "Add Team" and "Add Player" are placed on a
list
- This list is made the value of the options property on the form
bean
- In this case the class of the form bean is not provided by the
webapp developer. Instead, it is dynamically created by Struts.