KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > views > engines > forms > MainForm


1 package org.jahia.views.engines.forms;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4
5 import org.apache.struts.action.ActionErrors;
6 import org.apache.struts.action.ActionForm;
7 import org.apache.struts.action.ActionMapping;
8
9
10 /**
11  * Jahia Engine Main Form bean.
12  *
13  */

14 public class MainForm extends ActionForm {
15
16     /**
17      * Reset all properties to their default values.
18      *
19      * @param mapping The mapping used to select this instance
20      * @param request The servlet request we are processing
21      */

22     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
23
24     }
25
26     /**
27      * Validate the properties that have been set from this HTTP request,
28      * and return an <code>ActionErrors</code> object that encapsulates any
29      * validation errors that have been found. If no errors are found, return
30      * <code>null</code> or an <code>ActionErrors</code> object with no
31      * recorded error messages.
32      *
33      * @param mapping The mapping used to select this instance
34      * @param request The servlet request we are processing
35      */

36     public ActionErrors validate(ActionMapping mapping,
37                                  HttpServletRequest JavaDoc request) {
38         ActionErrors errors = new ActionErrors();
39         return (errors);
40     }
41 }
42
43
Popular Tags