最新回答 / 老子尼克楊
login.jsp頁面的代碼:<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"...
2018-12-10
測試了一下:在不超時的情況下,只有關(guān)閉所有相關(guān)的瀏覽器窗口后,再重新打開,才會重新生成一個新的session.
2018-12-10
已采納回答 / 慕神056770
list == null 說明List沒有初始化 或者賦值為了null,說明list內(nèi)沒有數(shù)據(jù),反正list不為空;size=0,這樣的集合對于之后的判斷是沒用的,甚至是報異常,如list.get(0.....n)這樣的取值判斷,就會報異常,故list長度不為0
2018-12-07
已采納回答 / 偉森
Cookie?cookie?=?new?Cookie("ListViewCookie",list); //把cookie加入 response.addCookie(cookie);????
2018-12-06