在jsp页面里有:
<%
UserInfoManager mgr = new UserInfoManager(request);
if(!mgr.isLogin())
{
response.sendRedirect("../logout.jsp");
return;
}
%>
怎么转换成<c:if >
<c:if test="${!mgr.isLogin()}">
<c:redirect url = "("../logout.jsp"/>
</c:if>
对吗??
<%
UserInfoManager mgr = new UserInfoManager(request);
if(!mgr.isLogin())
{
response.sendRedirect("../logout.jsp");
return;
}
%>
怎么转换成<c:if >
<c:if test="${!mgr.isLogin()}">
<c:redirect url = "("../logout.jsp"/>
</c:if>
对吗??
<c:if test="${!mgr.login}应该可以吧