在使用zkdemo的时候,发现再web.xml中配置的index.html静态页面中不知道怎么就跳到/userguide/index.zul这个页面,

在仔细观察中发现index.html静态页面中有一句<meta HTTP-EQUIV="REFRESH" content="0; url=userguide/">

0秒刷新到url/userguide/然后再加上web.xml中配置的index.zul页面,这样的话就直接跳转到了/userguide/index.zul页面了

eg:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="refresh" content="1000"> 
<title>隔1000秒刷新当前页面</title>
</head>
<body>
</body>
</html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="refresh" content="3;url=http://www.xxxx.com">
<title>隔3秒刷新到http://www.xxxx.com</title>
</head>
<body>
</body>
</html>

相关文章:

  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2021-05-28
  • 2021-09-08
  • 2022-01-23
相关资源
相似解决方案