KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > action > ActionFormBean


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

18
19
20 package org.apache.struts.action;
21
22
23 import org.apache.struts.config.FormBeanConfig;
24
25
26 /**
27  * <p>An <strong>ActionFormBean</strong> is the definition of a form bean that
28  * is loaded from a <code>&lt;form-bean&gt;</code> element in the Struts
29  * configuration file. It can be subclassed as necessary to add additional
30  * properties.</p>
31  *
32  * <p>Since Struts 1.1 <code>ActionFormBean</code> extends <code>FormBeanConfig</code>.</p>
33  *
34  * <p><strong>NOTE</strong> - This class would have been deprecated and
35  * replaced by <code>org.apache.struts.config.FormBeanConfig</code> except
36  * for the fact that it is part of the public API that existing applications
37  * are using.</p>
38  *
39  * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
40  */

41 public class ActionFormBean extends FormBeanConfig {
42
43
44     /**
45      * <p>Construct an instance with default vaslues.</p>
46      */

47     public ActionFormBean() {
48
49         super();
50
51     }
52
53
54     /**
55      * <p>Construct an instance with the specified values.</p>
56      *
57      * @param name Form bean name
58      * @param type Fully qualified class name
59      */

60     public ActionFormBean(String JavaDoc name, String JavaDoc type) {
61
62         super();
63         setName(name);
64         setType(type);
65
66     }
67
68
69 }
70
Popular Tags