01: /**
02: * Copyright 2004-2005 jManage.org
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: */package org.jmanage.webui.forms;
16:
17: import org.apache.struts.action.ActionErrors;
18: import org.apache.struts.action.ActionMapping;
19: import org.apache.struts.validator.ValidatorForm;
20:
21: import javax.servlet.http.HttpServletRequest;
22:
23: /**
24: *
25: * date: Jun 17, 2004
26: * @author Rakesh Kalra
27: */
28: public abstract class BaseForm extends ValidatorForm {
29:
30: /**
31: * The validate method is made final, to use validation.xml based
32: * validation.
33: *
34: * @param mapping The ActionMapping for this form
35: * @param request The HttpServletRequest that we are processing
36: * @return in case of errors, it returns ActionErrors object;
37: * otherwise it returns null
38: */
39: public ActionErrors validate(ActionMapping mapping,
40: HttpServletRequest request) {
41:
42: return super.validate(mapping, request);
43: }
44:
45: }
|