Package net.sprd.sampleapps.common.dataaccess.model

Examples of net.sprd.sampleapps.common.dataaccess.model.Basket


            if (cookie.getName().equalsIgnoreCase(BasketController.COOKIE_SPRD_BASKET))
                basketId = cookie.getValue();
        }

        if (basketId == null)
            httpServletRequest.setAttribute("basket", new Basket("0", "0", "0", "0", "-"));
        else
            httpServletRequest.setAttribute("basket", dataAccess.getBasket(basketId, false));
        httpServletRequest.getRequestDispatcher("/simplebasket.jsp").forward(httpServletRequest, httpServletResponse);
    }
View Full Code Here


            if (cookie.getName().equalsIgnoreCase(BasketController.COOKIE_SPRD_BASKET))
                basketId = cookie.getValue();
        }

        if (basketId == null)
            httpServletRequest.setAttribute("basket", new Basket("0", "0", "0", "0", "-"));
        else
            httpServletRequest.setAttribute("basket", dataAccess.getBasket(basketId, true));                   
        httpServletRequest.getRequestDispatcher("/basket.jsp").forward(httpServletRequest, httpServletResponse);
    }
View Full Code Here

            if (cookie.getName().equalsIgnoreCase(BasketController.COOKIE_SPRD_BASKET))
                basketId = cookie.getValue();
        }

        if (basketId == null)
            httpServletRequest.setAttribute("basket", new Basket("0", "0", "0", "0", "-"));
        else {
            System.out.println("action: " + httpServletRequest.getParameter("action") + " id " +  httpServletRequest.getParameter("itemId"));
            if (httpServletRequest.getParameter("action") != null &&
                    httpServletRequest.getParameter("action").equalsIgnoreCase("delete") &&
                    httpServletRequest.getParameter("itemId") != null) {
View Full Code Here

TOP

Related Classes of net.sprd.sampleapps.common.dataaccess.model.Basket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.