⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shoppingform.java

📁 简单的web应用,实现基本的购物车功能,有良好的扩展性
💻 JAVA
字号:
package struts.actionform;

import java.util.*;

import javax.servlet.http.*;

import bo.*;
import org.apache.struts.action.*;

public class ShoppingForm extends ActionForm {
    private String event;
    private ArrayList productList;
    private Cart cart = new Cart();
    private String quantity;
    private String id;

    public void setEvent(String event) {
        this.event = event;
    }

    public void setProductList(ArrayList productList) {
        this.productList = productList;
    }

    public void setCart(Cart cart) {
        this.cart = cart;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public void setId(String productId) {
        this.id = productId;
    }

    public String getEvent() {
        return event;
    }

    public ArrayList getProductList() {
        return productList;
    }

    public Cart getCart() {
        return cart;
    }

    public String getQuantity() {
        return quantity;
    }

    public String getId() {
        return id;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -