KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jndi > browser > web > form > ViewForm


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.jndi.browser.web.form;
8
9 import javax.servlet.http.HttpServletRequest JavaDoc;
10
11 import org.apache.struts.action.ActionErrors;
12 import org.apache.struts.action.ActionForm;
13 import org.apache.struts.action.ActionMapping;
14
15 /**
16  * Description of the Class
17  *
18  * @author letiemble
19  * @created 13 février 2002
20  * @version $Revision: 1.2 $
21  * @todo Javadoc to complete
22  */

23 public class ViewForm extends ActionForm
24 {
25    /** Description of the Field */
26    protected String JavaDoc name = null;
27    /** Description of the Field */
28    protected String JavaDoc type = null;
29
30
31    /** Constructor for the ViewForm object */
32    public ViewForm() { }
33
34
35    /**
36     * Returns the name.
37     *
38     * @return String
39     */

40    public String JavaDoc getName()
41    {
42       return name;
43    }
44
45
46    /**
47     * Returns the type.
48     *
49     * @return String
50     */

51    public String JavaDoc getType()
52    {
53       return type;
54    }
55
56
57    /**
58     * Description of the Method
59     *
60     * @param mapping Description of the Parameter
61     * @param request Description of the Parameter
62     */

63    public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) { }
64
65
66    /**
67     * Sets the name.
68     *
69     * @param name The name to set
70     */

71    public void setName(String JavaDoc name)
72    {
73       this.name = name;
74    }
75
76
77    /**
78     * Sets the type.
79     *
80     * @param type The type to set
81     */

82    public void setType(String JavaDoc type)
83    {
84       this.type = type;
85    }
86
87
88    /**
89     * Description of the Method
90     *
91     * @param mapping Description of the Parameter
92     * @param request Description of the Parameter
93     * @return Description of the Return Value
94     */

95    public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request)
96    {
97       return new ActionErrors();
98    }
99 }
100
101
Popular Tags