JSP Response. Setheader() method: set header information

setHeader(String name,value)

Example

<%
  out.println(new Date());
  response.setHeader("Refresh","1");
%>

Typical application

<body>
  <p>response自动刷新</p>
  当前时间为:
  <%response.setHeader("Refresh","10");  //设置页面自动刷新
                        out.println(""+new Date());  //页面显示系统时间
  %>
</body>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>