Example 21 - Item List JSP
    <body>
    <jsp:useBean id="userProxy" scope="session" class="jspbeans.UserProxy" />
    <%@ include file="MainHeader.html" %>
    <center> <table border="1" width="90%">
    <%
    Auction.Item.ItemHome iHome = userProxy.getItemHome();
    Auction.Bid.BidHome bHome = userProxy.getBidHome();
    java.util.Enumeration items = iHome.findItemsByUser( userProxy.getUser() );
    
    while ( items.hasMoreElements() )
    {
        Auction.Item.Item currItem = (Auction.Item.Item) items.nextElement();
        Auction.Bid.Bid maxBid = bHome.findMaxBidForItem( currItem );
        String maxBidAmount = userProxy.formatAmount( maxBid.getAmount() );
        java.util.Date endDate = maxBid.getBidDate().getTime();
        String maxBidDate = java.text.DateFormat.getInstance().format( endDate );
    %>
        <tr>
           <td><%= currItem.getDescription() %></td>
           <td align="center"><%= maxBidAmount %></td>
           <td align="center"><%= maxBidDate %></td>
        </tr>
    <%
    }
    %>
    </table> </center>
    </body>
            

Next Slide >>