head 1.1; access; symbols IT1FALL00:1.1; locks; strict; comment @# @; 1.1 date 2000.12.05.03.06.42; author dbc; state Exp; branches; next ; desc @@ 1.1 log @Added Files: DateBean.java.txt beanEg.html choosepets.html counter.jsp.txt date.jsp.txt datebean.jsp.txt forward.jsp.txt forwardEg.html hello.html helloUserEg.html hellouser.jsp.txt index.html method.jsp.txt moody.jsp.txt noparam.html noparam.jsp.txt param.jsp.txt paramEg.html petsEg.html showpets.jsp.txt vendingEg.html vendingmachine.jsp.txt vendingview.jsp.txt @ text @ <%@@ page import="java.util.*" %> <%! String [] snacks = {"Chips", "Popcorn", "Peanuts", "Snickers bar", "Twix", "Pop Tarts", "Chocolate Donut"} ; %> <% Vector selections = (Vector) session.getAttribute("selections") ; if(selections == null) { selections = new Vector() ; session.setAttribute("selections", selections) ; } String selection = request.getParameter("selection") ; if(selection != null) selections.addElement(selection) ; %>
<% for(int i = 0 ; i < snacks.length ; i++) { %> <% } %> View current selections @