向向向先生
2018-10-08 09:17
Type Exception Report
Message An exception occurred processing [/index.jsp] at line [23]
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: An exception occurred processing [/index.jsp] at line [23] 20: <!-- 鍟嗗搧寰幆寮�濮� --> 21: <% 22: ItemsDao itemsDao = new ItemsDao(); 23: ArrayList<Items> list = itemsDao.getAllItems(); 24: if(list!=null&&list.size()>0) 25: { 26: for(int i=0;i<list.size();i++)
应该是空指针异常吧,你新建了这个itemsDao对象,就直接去get元素。。。
JAVA遇见HTML——JSP篇
248277 学习 · 3071 问题
相似问题