1 /* 2 * Copyright (c) 2003, Inversoft 3 * 4 * This software is distribuable under the GNU Lesser General Public License. 5 * For more information visit gnu.org. 6 */ 7 package com.inversoft.verge.mvc.validator.form; 8 9 10 import com.inversoft.verge.mvc.MVCException; 11 import com.inversoft.verge.mvc.MVCRequest; 12 import com.inversoft.verge.mvc.controller.form.config.FormConfigStruct; 13 import com.inversoft.verge.mvc.validator.AbstractValidatorHandler; 14 15 16 /** 17 * <p> 18 * The ValidatorHandler for the form based MVC system. 19 * </p> 20 * 21 * @author Brian Pontarelli 22 */ 23 public class FormValidatorHandler extends AbstractValidatorHandler { 24 25 /** 26 * This method does the work of handling the form based MVC validation. If a 27 * failure is encountered and their is a failure mapping, then this sets up 28 * the FormConfigStruct so that the controller can exit correctly. 29 */ 30 public boolean validate(MVCRequest mvcRequest) throws MVCException { 31 FormConfigStruct struct = (FormConfigStruct) mvcRequest.getConfiguration(); 32 return super.validate(mvcRequest, struct); 33 } 34 }