hi
i create a jsp and a servlet to get data from the data to be displayed in the jsp page. the code is below
ListCustomer.jsp
<table id="customerListTable" border="3">
<tr >
<th bgcolor=>ID</th>
<th bgcolor=>Name</th>
<th bgcolor=>Address</th>
<th bgcolor=>TelNo</th>
<th bgcolor=>Req</th>
</tr>
<c:forEach var="customer" begin="0" items="${requestScope.customerList}">
<tr>
<td>${customer.cusid} </td>
<td>${customer.cusname} </td>
<td>${customer.cusaddress} </td>
<td>${customer.custelno} </td>
<td>${customer.cusreq} </td>
</tr>
</c:forEach>
</table>
</body>
</html>
ListCustomerService.servlet
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException { try {
int id = Integer.parseInt(request.getParameter("id"));
String cname = request.getParameter("cusname");
String address = request.getParameter("address");
int telno = Integer.parseInt(request.getParameter("telno"));
String req = request.getParameter("req");
//customerService.createCustomer( cname, address, telno, req);
customerService.createCustomer(id, cname, address, telno, req);
request.getRequestDispatcher("ListCustomer").forward(request, response);
} catch (Exception ex) {
throw new ServletException(ex);
}
}
but the data from the database does not disply in the page? i don't get any error either
what could be the problem be