Session后臺打印
<c:set value="today" var="day" scope="session" />
<c:out value="${day}"/><br>
System.out.print(httpSession.getAttribute("day"));
后臺打印的值是null
<c:set value="today" var="day" scope="session" />
<c:out value="${day}"/><br>
System.out.print(httpSession.getAttribute("day"));
后臺打印的值是null
2017-04-21
舉報
2018-01-24
跟你遇到了相似的情況,求問解決了嗎
2017-04-22
用session.getAttribute();試試