title: display iterator in jsp
body: <p>I have the following code:</p>
  
  <pre><code>@Override  
  public Iterator retrieve() throws SQLException {  
      List&lt;PasalBean&gt; pasalObject = new ArrayList&lt;PasalBean&gt;();  
      try {  
          Class.forName(dbDriver); 
          con = DriverManager.getConnection(url);  
          ps = con.createStatement();  
          rs = ps.executeQuery("select * from T_PASAL WHERE ID_PASAL = '" + id_pasal + "' ORDER BY ID_PASAL");  
          while (rs.next()) {  
              pasalObject.add(new  PasalBean(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4)));  
          }  
      }catch (Exception e) {  
          System.out.println("Error Data : " + e.getMessage());  
      }  
      return (Iterator) pasalObject;  
  }
  </code></pre>
  
  <p>How can I display it in JSP?</p>