HTTP Status 500 - An exception occurred processing JSP page /details.jsp at line 21type Exception reportmessage An exception occurred processing JSP page /details.jsp at line 21description The server encountered an internal error that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: An exception occurred processing JSP page /details.jsp at line 21
18: <tr>
19: <%
20: ItemsDAO itemDao=new ItemsDAO();
21: Items item =itemDao.getItemsById(Integer.parseInt(request.getParameter("id")));
22: if(item!=null){
23: %>
24:
4 回答
wwpbjing
TA贡献20条经验 获得超5个赞
<% // 看一下request.getParameter("id")取到值了吗 ItemsDAO itemDao=new ItemsDAO(); String id = request.getParameter("id"); if(null != id) { Items item =itemDao.getItemsById(Integer.parseInt(id)); } %>
添加回答
举报
0/150
提交
取消