org.appfuse.webapp.form
Class BaseForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.appfuse.webapp.form.BaseForm
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- UploadForm
public class BaseForm
- extends ValidatorForm
- implements Serializable
Base ActionForm bean. Used to give child classes readable
representation of their properties using toString() method.
Also has a validate() method to cancel validation on cancel actions.
View Source
- Version:
- $Revision: 1.7 $ $Date: 2005-04-11 15:09:49 -0600 (Mon, 11 Apr 2005) $
- Author:
- Matt Raible
- See Also:
- Serialized Form
BaseForm
public BaseForm()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
validate
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
- This validation method is designed to be a parent of all other Form's
validate methods - this allows the cancel and delete buttons to bypass
validation.
- Overrides:
validate
in class ValidatorForm
- Parameters:
mapping
- The ActionMapping
used to select this
instancerequest
- The servlet request we are processing
- Returns:
ActionErrors
object that encapsulates any
validation errors
Copyright � 2002-2006