日期:2014-05-17 浏览次数:20794 次
<%
String admin = (String) session.getAttribute("admin");
if (admin == null) { //欠录
%>
<script language="javascript">
top.location.href="login.jsp"; // 本页面在iframe中时 加top..,反之则去掉top..
</script>
<%
}
%>
纯jsp代码,不含标签。。
------解决方案--------------------
request.getRequestDispatcher();
//重定向