View Javadoc

1   /*
2    * $Id: ActionFormBean.java 421119 2006-07-12 04:49:11Z wsmoak $
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  package org.apache.struts.action;
19  
20  import org.apache.struts.config.FormBeanConfig;
21  
22  /***
23   * <p>An <strong>ActionFormBean</strong> is the definition of a form bean that
24   * is loaded from a <code>&lt;form-bean&gt;</code> element in the Struts
25   * configuration file. It can be subclassed as necessary to add additional
26   * properties.</p>
27   *
28   * <p>Since Struts 1.1 <code>ActionFormBean</code> extends
29   * <code>FormBeanConfig</code>.</p>
30   *
31   * <p><strong>NOTE</strong> - This class would have been deprecated and
32   * replaced by <code>org.apache.struts.config.FormBeanConfig</code> except for
33   * the fact that it is part of the public API that existing applications are
34   * using.</p>
35   *
36   * @version $Rev: 421119 $ $Date: 2005-05-14 01:09:32 -0400 (Sat, 14 May 2005)
37   *          $
38   */
39  public class ActionFormBean extends FormBeanConfig {
40      /***
41       * <p>Construct an instance with default vaslues.</p>
42       */
43      public ActionFormBean() {
44          super();
45      }
46  
47      /***
48       * <p>Construct an instance with the specified values.</p>
49       *
50       * @param name Form bean name
51       * @param type Fully qualified class name
52       */
53      public ActionFormBean(String name, String type) {
54          super();
55          setName(name);
56          setType(type);
57      }
58  }