The method getViewList(String) is undefined for the type ItemsDao 總是報錯
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 109 in the jsp file: /details.jsp
The method getViewList(String) is undefined for the type ItemsDao
106: ? ? ? ? ? ? ?<b>您瀏覽過的商品</b><br>
107: ? ? ? ? ? ? ?<!-- 循環(huán)開始 -->
108: ? ? ? ? ? ? ?<%
109: ? ? ? ? ? ? ? ?ArrayList<items> itemList = itemDao.getViewList(list);
110: ? ? ? ? ? ? ? ?if(itemList!=null && itemList.size()>0)
111: ? ? ? ? ? ? ? ?{
112: ? ? ? ? ? ? ? for(items c:itemList)
2017-02-21
修改.java文件的話,直接在瀏覽器中刷新是不行的,需要重新啟動tomcat
2017-01-11
同問。。
2017-01-03
我的也是,解決了嗎?
2016-12-13
你在ItemsDAO里面有g(shù)etViewList()這個方法了嗎