// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   CartManagerAction.java

package com.keyshop.shop.order.controller;

import com.keyshop.pub.controller.PubAction;
import com.keyshop.pub.model.PubBean;
import com.keyshop.pub.util.FormatHelper;
import com.keyshop.pub.util.StringUtil;
import com.keyshop.shop.order.model.CartManager;
import com.keyshop.shop.user.model.User;
import java.util.List;
import javax.servlet.http.*;
import org.apache.struts.action.*;

public class CartManagerAction extends PubAction
{

    public boolean isRedirect;

    public CartManagerAction()
    {
        isRedirect = false;
    }

    public String getSelectSQL()
    {
        String sql = "";
        return sql;
    }

    public void initClassName()
    {
        boClass = "";
        beanClass = " ";
        formBeanClass = " ";
    }

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    {
        return super.execute(mapping, form, request, response);
    }

    public ActionForward performList(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    {
       return null;
    }

    public ActionForward performAddproduct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    {
        String productId = request.getParameter("productId");
        User user = (User)request.getSession().getAttribute("User");
        int productNumber = 1;
       
        cart.addProduct(productId, productNumber);
        return performList(mapping, form, request, response);
    }

    private void goUrl(String requestPageUrl, String param)
        throws Exception
    {
       
    }

    public ActionForward performRemoveproduct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    {
return null;
    }

    public ActionForward performUpdateproduct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    {
return null;
    }

    protected boolean isObjectExisted(PubBean bean)
    {
        return false;
    }
}
