<%
List<Customer> CustomerList=(List<Customer>)request.getAttribute("CustomerData");
for(Customer customer : CustomerList) {
String name=customer.getName();
String address=customer.getAddress();
String item=customer.getItem();
%>
<tr><td><%=name%></td><td><%=address%></td><td><%=item%></td></tr>
<%
}
%>
</table><br>
<a href="customer.jsp">Insert Another Record</a>
</body>
</html>
getting error in List<Customer> CustomerList=(List<Customer>)request.getAttribute("CustomerData"); please help