org.appfuse.webapp.form
Class BaseForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended byorg.apache.struts.validator.ValidatorForm
          extended byorg.appfuse.webapp.form.BaseForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UploadForm, org.appfuse.webapp.form.UserForm

public class BaseForm
extends ValidatorForm
implements Serializable

Base ActionForm bean. An ActionForm bean serves as an adapter to make data entered into an HTML available to the rest of a Web application, usually by transferring data to an internal object that uses native types and implements a business logic interface.

Version:
$Revision: 1.5 $ $Date: 2004/03/31 13:04:28 $
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
 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, getValidatorResults, log, log, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseForm

public BaseForm()
Method Detail

toString

public String toString()

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.

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-2004