com.finalist.util.genelv.struts
Class GenericForm
java.lang.Object
  
org.apache.struts.action.ActionForm
      
org.apache.struts.validator.ValidatorForm
          
com.finalist.util.genelv.struts.GenericForm
- All Implemented Interfaces: 
 - java.io.Serializable
 
- public abstract class GenericForm
- extends org.apache.struts.validator.ValidatorForm
  
Generic form bean
- Version:
 
  - $1.00$
 
- Author:
 
  - Gerard van de Weerd
 
- See Also:
 - Serialized Form
 
 
| Fields inherited from class org.apache.struts.validator.ValidatorForm | 
page, validatorResults | 
 
| Fields inherited from class org.apache.struts.action.ActionForm | 
multipartRequestHandler, servlet | 
 
 
| 
Method Summary | 
protected  org.apache.struts.action.ActionErrors | 
doValidate(org.apache.struts.action.ActionMapping mapping,
           javax.servlet.http.HttpServletRequest request)
 
          Performs the default server-side validation (calls superclass ValidationForm's validate method).
  | 
 java.lang.Throwable | 
getRaisedException()
 
            | 
 java.lang.String | 
getSubmit()
 
          Return the value of the submit button | 
 void | 
setSubmit(java.lang.String submit)
 
          Sets the value of the submit. | 
 org.apache.struts.action.ActionErrors | 
validate(org.apache.struts.action.ActionMapping mapping,
         javax.servlet.http.HttpServletRequest request)
 
          Generic validation with exception handling.  | 
 
| 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, toString, wait, wait, wait | 
 
GenericForm
public GenericForm()
getRaisedException
public java.lang.Throwable getRaisedException()
 
getSubmit
public java.lang.String getSubmit()
- Return the value of the submit button
 
 
setSubmit
public void setSubmit(java.lang.String submit)
- Sets the value of the submit.
 
 
validate
public final org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                            javax.servlet.http.HttpServletRequest request)
- Generic validation with exception handling. 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 instancerequest - The servlet request we are processing
 
 
doValidate
protected org.apache.struts.action.ActionErrors doValidate(org.apache.struts.action.ActionMapping mapping,
                                                           javax.servlet.http.HttpServletRequest request)
                                                    throws java.lang.Exception
- Performs the default server-side validation (calls superclass ValidationForm's validate method).
 May be overridden by subclasses if custom validation is required within the GenericExceptions framework.
- Parameters:
 mapping - The mapping used to select this instancerequest - The servlet request we are processing
- Returns:
 - an ActionErrors object containing any validation errors, may be 
null.
 - Throws:
 java.lang.Exception - - any Throwable exception will be handled by the GenericExceptions framework.
 
 
Copyright © 2003-2004 SourceForge. All Rights Reserved.