jstl验证用户是否已登录

<c:if test="${empty sessionScope.isLog}">
 你没有登录或登录超时
 <a href="index.jsp">重新登录</a>
</c:if>

<c:if test="${sessionScope.isLog eq 1}">

<!--这里是实现功能的代码-->
</c:if>
原文地址:https://www.cnblogs.com/huhu/p/116913.html