麻烦帮我看下这是哪里出错了,跟教程一模一样啊

HTTP Status 500 - An exception occurred processing JSP page /details.jsp at line 21


type Exception report

message An exception occurred processing JSP page /details.jsp at line 21

description 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:


qq_Excalibur_0
浏览 4428回答 4
4回答

Qlvver1_0

我也出现了这个错误。请问你解决了吗

wwpbjing

<%      // 看一下request.getParameter("id")取到值了吗      ItemsDAO itemDao=new ItemsDAO();      String id = request.getParameter("id");      if(null != id) {       Items item =itemDao.getItemsById(Integer.parseInt(id));      } %>

Genment

请问是哪个教程呢?

田心枫

服务器端错误
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java