1、Java Web设置页面刷新的方法(两种):
response.setHeader("refresh", "0.3," + request.getHeader("Referer")); response.getWriter().print("<meta http-equiv=‘Refresh‘ content=‘5;url=http://www.baidu.com.cn‘ />");
时间: 2024-12-28 15:43:56
1、Java Web设置页面刷新的方法(两种):
response.setHeader("refresh", "0.3," + request.getHeader("Referer")); response.getWriter().print("<meta http-equiv=‘Refresh‘ content=‘5;url=http://www.baidu.com.cn‘ />");