Tuesday, December 27, 2005

How to enable Auto-Refresh in JSP Pages and Servlet

In servlets we use response Headers to achieve Auto-Refresh
response.setIntHeader("Refresh",3);

In JSP pages we use META tags to achieve Auto-Refresh
META HTTP-EQUIV="Refresh"
CONTENT="5;URL=http://localhost:8080/SecurityCheck/Test1.html">

//
URL=http://localhost:8080/SecurityCheck/Test1.html --> NOT Mandatory.
5 -
Indicates the number of seconds after which the Page should refresh.

Auto servlet refresh

0 Comments:

Post a Comment

<< Home