All pastes #272336 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-12-08 22:30 UTC
rendered paste body
package cbcc.org.beans;

//servlet import
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 * Class OrderFormBean - represents the order Form
 *
 * @author William
 * @version 1.3
 */

public class OrderFormBean2 extends org.apache.struts.action.ActionForm {
    // instance variables
    private int[] qty;
    
    /**
     * getQty - gets the qty
     *
     * @return int[] qty
     */    
    public int[] getQty() {
        return qty;
    }
    
    /**
     * setQty - sets the qty
     *
     * @param int[] qty
     */    
    public void setQty(int[] qty) {
        this.qty = qty;
    }
    
     /**
     * validate - validates the form
     *
     * @param ActionMapping mapping, HttpServletRequest request
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        //create errors
        ActionErrors errors = new ActionErrors();
        //return errors
        return errors;
    }
}