| hero.struts.forms.PropertyForm
PropertyForm | final public class PropertyForm extends ActionForm (Code) | | Form bean for property. This form has the following fields,
with default values in square brackets:
- key - The property key. [REQUIRED]
- value - The property value. [REQUIRED]
author: Miguel Valdes Faura version: $Revision: 1.1 $ $Date: 2004/07/30 14:57:57 $ |
Method Summary | |
public String | getKey() Return the property key. | public String | getValue() Return the property value. | public void | reset(ActionMapping mapping, HttpServletRequest request) Reset all properties to their default values. | public void | setKey(String key) Set the property key. | public void | setValue(String value) Set the property value. | public ActionErrors | validate(ActionMapping mapping, HttpServletRequest request) Validate the properties that have been set from this HTTP request,
and return an ActionErrors object that encapsulates any
validation errors that have been found. |
getValue | public String getValue()(Code) | | Return the property value.
|
reset | public void reset(ActionMapping mapping, HttpServletRequest request)(Code) | | Reset all properties to their default values.
Parameters: mapping - The mapping used to select this instance Parameters: request - The servlet request we are processing |
setKey | public void setKey(String key)(Code) | | Set the property key.
Parameters: key - The new property key |
setValue | public void setValue(String value)(Code) | | Set the property value.
Parameters: value - The new property value |
validate | public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)(Code) | | Validate the properties that have been set from this HTTP request,
and return an ActionErrors object that encapsulates any
validation errors that have been found. If no errors are found, return
null or an ActionErrors object with no
recorded error messages.
Parameters: mapping - The mapping used to select this instance Parameters: request - The servlet request we are processing |
|
|