1、不在js中

<c:if test="${empty sessionScope.adminAccount}">
       <c:redirect url="${ctx}/yxladmin.jsp" context="/" />
</c:if>

 

2、在js中

if($.trim("${sessionScope.adminAccount}") == "")
{
       top.location.href="${ctx}/yxladmin.jsp";
}

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-01-09
  • 2021-11-07
  • 2021-06-07
猜你喜欢
  • 2021-12-06
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-07-30
相关资源
相似解决方案