FileDocCategorySizeDatePackage
ProductForm.javaAPI DocExample1700Wed Apr 05 20:04:10 BST 2006com.oreilly.ajax

ProductForm.java

package com.oreilly.ajax;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class ProductForm extends ActionForm
{
    private int productId;
    private String productName;
    private String description;
    private String filename;
    private String imagePath;
    private float price;

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getFilename()
    {
        return filename;
    }

    public void setFilename(String filename)
    {
        this.filename = filename;
    }

    public float getPrice()
    {
        return price;
    }

    public void setPrice(float price)
    {
        this.price = price;
    }

    public int getProductId()
    {
        return productId;
    }

    public void setProductId(int productId)
    {
        this.productId = productId;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request)
    {
        this.productId = -1;
        this.productName = "";
        this.description = "";
        this.filename = "";
        this.price = 0.0F;
    }

    public String getImagePath()
    {
        return imagePath;
    }

    public void setImagePath(String imagePath)
    {
        this.imagePath = imagePath;
    }
}