/* ==================================================================== * The Tmax soft License, Version 1.1 * * Copyright (c) 1997-2004 The Tmax software. * All rights reserved. * html code omitted for readability. /* ==================================================================== /* ## item.jsp */
Using JavaBeans for session scope, you can make a cart.

Please select item to add or remove:

Items:    

/* ## carts.jsp */ <% cart.processRequest(request); pageContext.setAttribute("cart", cart, pageContext.SESSION_SCOPE); %>
You have the following items in your cart:
    <% String[] items = cart.getItems(); for (int i=0; i
  1. <%= items[i] %> <% } %>

<%@ include file ="item.html" %> /* ## item.html */
Using JavaBeans for session scope, you can make a cart.

Please select item to add or remove:

Items: