org.appfuse.webapp.form
Class BaseForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.validator.ValidatorForm
          extended by 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

Field Summary
 
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
BaseForm()
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 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.
 
Methods inherited from class org.apache.struts.validator.ValidatorForm
getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResults
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseForm

public BaseForm()
Method Detail

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 instance
request - The servlet request we are processing
Returns:
ActionErrors object that encapsulates any validation errors


Copyright � 2002-2006