最贊回答 / Jarly杰
list+=request.getParameter("id")+"#";//如果瀏覽記錄超過1000條,清零.String[] arr = list.split("#");if(arr!=null&&arr.length>0){ ? ?if(arr.length>=1000) ? ?{ ? ? ? ?list=""; ? ?}}Cookie cookie = new Cookie("ListViewCookie",list);response.addCookie(cookie...
2016-10-28
最贊回答 / sakura醬
定義的該方法的返回類型不是void必須有返回值,在try中執行代碼如果出現異常就會執行catch語句,try出現異常后中后面的代碼都不會執行,也就沒有返回值,所以要在catch中加上返回null
2016-10-25
最新回答 / 迷茫小z
1、確定tomcat是否啟動成功(訪問localhost:8080是否顯示tomcat)2、如果啟動成功,找到tomcat的網頁目錄,確認是否存在所部屬項目的index.jsp文件(查看..\apache-tomcat-7.0.72\webapps\項目名稱\index.jsp是否存在)
2016-10-24