org.apache.struts.validator
Class ValidatorActionForm
java.lang.Object
|
+--org.apache.struts.action.ActionForm
|
+--org.apache.struts.validator.ValidatorForm
|
+--org.apache.struts.validator.ValidatorActionForm
- All Implemented Interfaces:
- java.io.Serializable
- public class ValidatorActionForm
- extends ValidatorForm
- implements java.io.Serializable
This class extends ValidatorForm and provides
basic field validation based on an XML file. The key passed into the
validator is the action element's 'path' attribute from the
struts-config.xml which should match the form element's name attribute
in the validation.xml.
- See
ValidatorPlugin
definition in struts-config.xml
for validation rules.
- Since:
- Struts 1.1
- Version:
- $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getValidationKey(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Returns the Validation key. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
ValidatorActionForm
public ValidatorActionForm()
getValidationKey
public java.lang.String getValidationKey(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Returns the Validation key.
- Overrides:
getValidationKey
in class ValidatorForm
- Parameters:
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing- Returns:
- validation key - the action element's 'path' attribute in this case
Copyright © 2000-2005 - The Apache Software Foundation