<!-- An example JSP that accesses the database -->
<%@ page language="java" contentType="text/html" %>

  <title>Talking to the Database</title>

  <!-- Create an instance of the 
       SimpleCustFormatter bean -->
  <jsp:useBean id="list" class="SimpleCustFormatter">
    <jsp:setProperty name="list" property="*"/>

  <!-- Create a form containing a customer chooser 
       and an input field for the minimum quantity. -->

    Choose Customer:
    <jsp:getProperty name="list" property="custchooser"/>

    Minimum Quantity:
    <jsp:getProperty name="list" property="qtyinputfield"/>

    <INPUT TYPE="SUBMIT" VALUE="Set Filter">


  <!-- Display an HTML table 
       with the SQL query results -->
  <jsp:getProperty name="list" property="table"/>