KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > webui > forms > BaseForm


1 /**
2  * Copyright 2004-2005 jManage.org
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jmanage.webui.forms;
17
18 import org.apache.struts.action.ActionErrors;
19 import org.apache.struts.action.ActionMapping;
20 import org.apache.struts.validator.ValidatorForm;
21
22 import javax.servlet.http.HttpServletRequest JavaDoc;
23
24 /**
25  *
26  * date: Jun 17, 2004
27  * @author Rakesh Kalra
28  */

29 public abstract class BaseForm extends ValidatorForm {
30
31     /**
32      * The validate method is made final, to use validation.xml based
33      * validation.
34      *
35      * @param mapping The ActionMapping for this form
36      * @param request The HttpServletRequest that we are processing
37      * @return in case of errors, it returns ActionErrors object;
38      * otherwise it returns null
39      */

40     public ActionErrors validate(ActionMapping mapping,
41                                        HttpServletRequest JavaDoc request) {
42
43         return super.validate(mapping, request);
44     }
45
46 }
47
Popular Tags