| < Day Day Up > |
|
The <form-bean> sub-element is used to describe an instance of a FormBean that is later bound to an Action. The syntax of the <form-bean> sub-element is:
<form-beans> <form-bean name="name used to uniquely identify a FormBean" type="fully qualified class name of FormBean" /> </form-beans>
All <form-bean> sub-elements must be nested within a single <form-beans> element. The <form-beans> element is used only as a container for <form-bean> sub-elements.
Table 15.4 describes the attributes of a <form-bean> sub-element.
Attribute | Description |
---|---|
name | Contains the unique identifier that identifies this bean. This value is used in an action mappings element to bind a FormBean to an Action. (required) |
type | Specifies the fully qualified class name of the FormBean class. (required) |
This code snippet uses the <form-bean> sub-element:
<form-beans> <form-bean name="lookupForm" type="wrox.LookupForm" /> </form-beans>
The <form-bean> sub-element contains no body. It is configured using only its two attributes.
| < Day Day Up > |
|