Description: A simple online store system. Realization of shopping carts.
Design an Item class, including: a commodity like a number, a small meter
(2) design a servlet class
Start the session to take to see if there Hashmap class, which is a shopping cart
The structure of the HashMap class
Key value
Goods the id the Item class
Remove the HashMap from the session:
A. Look at the session there, remove, did not create
2. HashMap key id of the commodity, if the second purchase, the number 1, does not create a new HashMap class
Jump page-> show cart in detail
To Search:
File list (Check if you may need any files):
网上购物系统4\mysql-connector-java-5.0.6-bin.jar
.............\workspace\.metadata\.lock
.............\.........\.........\.log
.............\.........\.........\.plugins\com.genuitec.eclipse.desktop\dialog_settings.xml
.............\.........\.........\........\.....................easie.tomcat.myeclipse\tomcat\conf\catalina.policy
.............\.........\.........\........\...........................................\......\....\catalina.properties
.............\.........\.........\........\...........................................\......\....\context.xml
.............\.........\.........\........\...........................................\......\....\logging.properties
.............\.........\.........\........\...........................................\......\....\server.xml
.............\.........\.........\........\...........................................\......\....\tomcat-users.xml
.............\.........\.........\........\...........................................\......\....\web.xml
.............\.........\.........\........\...........................................\......\temp\safeToDelete.tmp
.............\.........\.........\........\...........................................\......\webapps\newsys\firstPage.jsp
.............\.........\.........\........\...........................................\......\.......\......\images\head.gif
.............\.........\.........\........\...........................................\......\.......\......\......\left.jpg
.............\.........\.........\........\...........................................\......\.......\......\index.jsp
.............\.........\.........\........\...........................................\......\.......\......\login.jsp
.............\.........\.........\........\...........................................\......\.......\......\META-INF\MANIFEST.MF
.............\.........\.........\........\...........................................\......\.......\......\WEB-INF\classes\com\icss\bean\Admin.class
.............\.........\.........\........\...........................................\......\.......\......\.......\.......\...\....\....\News.class
.............\.........\.........\........\...........................................\......\.......\......\.......\.......\...\....\....\NewType.class
.............\.........\.........\........\...........................................\......\.......\......\.......\.......\...\....\dao\DBHelper.class
.............\.........\.........\........\...........................................\......\.......\......\.......\.......\...\....\servlet\ShowFirsPage.class
.............\.........\.........\........\...........................................\......\.......\......\.......\lib\mysql-connector-java-5.0.6-bin.jar
.............\.........\.........\........\...........................................\......\.......\......\.......\web.xml
.............\.........\.........\........\...........................................\......\.......\Test\a.jsp
.............\.........\.........\........\...........................................\......\.......\....\b.jsp
.............\.........\.........\........\...........................................\......\.......\....\c.jsp
.............\.........\.........\........\...........................................\......\.......\....\EL1.jsp
.............\.........\.........\........\...........................................\......\.......\....\EL2.jsp
.............\.........\.........\........\...........................................\......\.......\....\index.jsp
.............\.........\.........\........\...........................................\......\.......\....\META-INF\MANIFEST.MF
.............\.........\.........\........\...........................................\......\.......\....\WEB-INF\classes\com\icss\bean\Student.class
.............\.........\.........\........\...........................................\......\.......\....\.......\web.xml
.............\.........\.........\........\...........................................