Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java页面重定向_Java_Jsp - Fatal编程技术网

Java页面重定向

Java页面重定向,java,jsp,Java,Jsp,我正在用Java开发一个项目 我想从一个欢迎页面开始,在这里我放置了页面重定向的语法。但是,我想显示欢迎页面,2秒钟,然后重定向它 语法应该是什么?使用标记(url值可以是相对值或绝对值): <meta http-equiv="refresh" content="2;url=nextpage.html" /> <script type="text/javascript"> setTimeout(function() { window.location = 'next

我正在用Java开发一个项目

我想从一个欢迎页面开始,在这里我放置了页面重定向的语法。但是,我想显示欢迎页面,2秒钟,然后重定向它

语法应该是什么?

使用标记(
url
值可以是相对值或绝对值):

<meta http-equiv="refresh" content="2;url=nextpage.html" />
<script type="text/javascript">
  setTimeout(function() { window.location = 'nextpage.html'; }, 2000);
</script>