%-- basket.jsp Alan Pinder - April 10th 2005 This page is responsible for showing the user's shopping basket This page displays the navigation bar shown across most of the pages Classes Used: None Attributes Used: isActive userName userObject basket --%> <%-- Standard page declarations --%> <%@ page import="apz.db.*" %> <%@ page session="true" %> <%@ page errorPage="error.jsp" %> <% // Read our basket object // If it doesn't exist, throw exception! Object objBasket = session.getAttribute("basket"); if (objBasket == null) throw new DbNullPointerException("objBasket"); Basket basket = (Basket)objBasket; // Read our saved basket basket.addItem(1, 10); basket.addItem(2, 7); %>