当前位置: 代码迷 >> Web前端 >> 在web首次访问页面时如何先加载action中数据
  详细解决方案

在web首次访问页面时如何先加载action中数据

热度:84   发布时间:2012-07-20 10:38:30.0
在web首次访问页面时怎么先加载action中数据

在index.jsp 中使用:

<%@ page contentType="text/html; charset=GBK"%>
<html>
?<head>
??? <script type="text/javascript">
???????? window.onload=function()
????????? {
????????????? top.location.href="<%=request.getContextPath()%>/account/login.action";
?????????? }
?? </script>
?</head>
?<body>
?</body>
</html>

  相关解决方案