首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

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

2012-07-20 
在web首次访问页面时怎么先加载action中数据在index.jsp 中使用: %@ page contentTypetext/html chars

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

热点排行