首页 | 本学科首页   官方微博 | 高级检索  
     

基于Servlet和Session实现购物车
引用本文:谌桂枝. 基于Servlet和Session实现购物车[J]. 电脑编程技巧与维护, 2009, 0(14): 35-37
作者姓名:谌桂枝
作者单位:株洲职业技术学院信息工程系,株洲,412000
摘    要:Session对象对于初学者来说是比较抽象的概念,比较难理解,用Session对象实现购物车能帮助读者理解Session对象。通过Servlet、Session和JavaBean来实现购物车中商品的添加与查看两大功能,并提出购物车的较高实现要求,添加的商品如果购物车中有,将不再重复添加商品,它自动记录选购的商品并计算商品的总价,在购物车中还可以改变商品的数量或取消对某商品的选购。

关 键 词:Session  购物车  Servlet

Implementation of Shopping Cart Based on Servlet and Session
SHEN Guizhi. Implementation of Shopping Cart Based on Servlet and Session[J]. Computer Programming Skills & Maintenance, 2009, 0(14): 35-37
Authors:SHEN Guizhi
Affiliation:SHEN Guizhi (Zhuzhou Professional Technology College Information Engineering Department,Zhuzhou 412000)
Abstract:For beginners session object is a relatively abstract concept and it's difficult to understand. It will help learners to understand the session object to use session object to implement shopping cart. In this paper, it can implement the two functions of accession and check by using Servlet, Session, and JavaBean, and achieve the higher requirements of the shopping cart: the goods will not be added to the shopping cart if there are the same commodities, the chosen goods will be recorded automatically and the...
Keywords:Session  Servlet
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号