product.jsp 
<% 
  List all = null ; 
  all = (List)request.getAttribute("all") ; 
  %> Productservlet 
try 

request.setAttribute("all",Daofactory.getProductdaoimp().queryAll()) ; 
} Productdaoimp 
public List queryAll() 

List all=new ArrayList(); 
String sql = "SELECT * FROM categories" ; 
try 

Connection conn = pool.getConnection(); 
PreparedStatement pstmt = conn.prepareStatement(sql); 
ResultSet rs = pstmt.executeQuery() ; 
while(rs.next()) 

Product p= new Product() ; 
p.setProductid(rs.getInt(1)) ; 
p.setCategoryid(rs.getInt(2)); 
p.setName(rs.getString(3)); 
p.setDescription(rs.getString(4)); 
p.setPrice(rs.getFloat(5)); 
all.add(p) ; 
} rs.close() ; 
pstmt.close() ; 
conn.close() ; 

catch (Exception e) 

e.printStackTrace(); 

return all ; } org.apache.jasper.JasperException: Exception in JSP: /product.jsp:28 25:      <th>删除 </th> 
26:    </tr> 
27:    <% 
28: Iterator iter = all.iterator() ; 
29: while(iter.hasNext()) 
30:… 
我是初学者,请大家多多指教,请说的具体点,谢谢!