ActionForm Classes
Form beans and their classes are specified in the form-bean subelement of the
form-beans element in the struts-config.xml file.
Here is the
loginForm form-bean
element.
- The type attribute gives the Java class of the loginForm
bean
- Struts finds the class LoginForm in the form package located under
WEB-INF/classes
- This class must subclass the Struts framework's
ActionForm class
- Here is the
definition of the LoginForm class
- This class provides the required accessor and mutator methods that
make it a Javabean