下面两行代码实现的功能相同。 response.setHeader("refresh","5;url=myframe.jsp");
举一反三
- response.setHeader(“refresh”,”0;URL=hello.jsp”) 表示怎样()跳转。
- 【单选题】定时刷新1秒的代码正确的是 。 A. response.setHeader("refresh"); B. request.setHeader("refresh","1"); C. response.setHeader("refresh","1"); D. request.setHeader("refresh");
- 下列不能够将页面跳转到a.jsp的是: A: response.sendRedirect(“a.jsp”); B: request.getRequestDispatcher("a.jsp").forward(request,response); C: request.setAttribute(“a”,”a.jsp”); D: response.setHeader("refresh","2;URL=a.jsp");
- 阅读下面代码片段: Servlet1: response.getWriter().write(“hello,servlet1”); request.getRequestDispatcher().include(“Servlet2”); Servlet2: response.setHeader(“Refresh”,”1”); response.getWriter().write(“,servlet2”);
- response.setHeader(“Refresh”,”5”)的含义是指页面刷新时间为____