问答详情
源自:8-7 商品详细信息显示

出现这个错误是怎么回事呢,老师

An exception occurred processing JSP page /details.jsp at line 41
org.apache.jasper.JasperException: An exception occurred processing JSP page /details.jsp at line 41

38:                     PetDAO petDao = new PetDAO();  
39:                     
40:                     
41:                     Pet pet = petDao.getPetByPid(Integer.parseInt(request.getParameter("pid"))); 
42:                     if(pet!= null)  
43:                     {  
44:                     


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:574)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)


提问者:慕斯9115879 2017-05-22 23:15

个回答

  • 追逐者125
    2017-06-16 16:26:54

    我觉得是pid没有值传过来