1 /* 2 * $Id$ 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 package org.apache.struts.action; 22 23 import org.apache.struts.config.FormBeanConfig; 24 25 /** 26 * <p>An <strong>ActionFormBean</strong> is the definition of a form bean that 27 * is loaded from a <code><form-bean></code> element in the Struts 28 * configuration file. It can be subclassed as necessary to add additional 29 * properties.</p> 30 * 31 * <p>Since Struts 1.1 <code>ActionFormBean</code> extends 32 * <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 for 36 * the fact that it is part of the public API that existing applications are 37 * using.</p> 38 * 39 * @version $Rev$ $Date: 2005-05-14 01:09:32 -0400 (Sat, 14 May 2005) 40 * $ 41 */ 42 public class ActionFormBean extends FormBeanConfig { 43 private static final long serialVersionUID = -6870747200275478095L; 44 45 /** 46 * <p>Construct an instance with default values.</p> 47 */ 48 public ActionFormBean() { 49 super(); 50 } 51 52 /** 53 * <p>Construct an instance with the specified values.</p> 54 * 55 * @param name Form bean name 56 * @param type Fully qualified class name 57 */ 58 public ActionFormBean(String name, String type) { 59 super(); 60 setName(name); 61 setType(type); 62 } 63 }