【发布时间】:2013-07-04 13:04:49
【问题描述】:
我正在尝试在会话超时时刷新页面。我将此添加到我的 HTML 的 <head> 部分:
<meta http-equiv="refresh"
content="${sessionScope['maxInactiveInterval']};url=${pageContext.servletContext.contextPath}/index.htm?reason=expired"/>
但是:${sessionScope['maxInactiveInterval']} 或 ${sessionScope.maxInactiveInterval} 打印出空值(无)。
我知道在 JSF 中我可以使用:#{session.maxInactiveInterval},它可以工作。如何在 JSP 页面中实现这个?
【问题讨论】:
-
你试过使用
sessionScope.maxInactiveInterval吗? -
是的,我有。我在我的问题中提到了这一点。