读书人

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

发布时间: 2012-07-20 10:38:30 作者: rapoo

在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>

读书人网 >Web前端

热点推荐