net.jot.web.ctrl
Class JOTFormValidationController

java.lang.Object
  extended by net.jot.web.ctrl.JOTController
      extended by net.jot.web.ctrl.JOTFormValidationController

public abstract class JOTFormValidationController
extends JOTController

Generic class you can extend to create a formValidation Controller

Author:
thibautc

Field Summary
 
Fields inherited from class net.jot.web.ctrl.JOTController
filterChain, filterConfig, request, response, RESULT_COMPLETED, RESULT_FAILURE, RESULT_FORBIDDEN, RESULT_SUCCESS, RESULT_VALIDATION_FAILURE, session
 
Constructor Summary
JOTFormValidationController()
           
 
Method Summary
 java.lang.String process()
          Returns the form validation results.
 java.util.Hashtable validateForm(JOTForm form)
          Calls the form validate() method
 
Methods inherited from class net.jot.web.ctrl.JOTController
getDataHolder, getForm, init, validatePermissions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOTFormValidationController

public JOTFormValidationController()
Method Detail

validateForm

public java.util.Hashtable validateForm(JOTForm form)
Calls the form validate() method

Parameters:
form -
Returns:

process

public java.lang.String process()
                         throws java.lang.Exception
Returns the form validation results.

Specified by:
process in class JOTController
Returns:
Throws:
java.lang.Exception