Share this post! | Vote this! |
|
Consider a webpage which is displaying live game score or stock
market status or currency exchange ration. For all such type of pages,
you would need to refresh your web page regularly using referesh or
reload button with your browser.
JSP makes this job easy by providing you a mechanism where you can make a webpage in such a way that it would refresh automatically after a given interval.
The simplest way of refreshing a web page is using method setIntHeader() of response object. Following is the signature of this method:
This method sends back header "Refresh" to the browser along with an integer value which indicates time interval in seconds. more...
JSP makes this job easy by providing you a mechanism where you can make a webpage in such a way that it would refresh automatically after a given interval.
The simplest way of refreshing a web page is using method setIntHeader() of response object. Following is the signature of this method:
public void setIntHeader(String header, int headerValue) |
0 comments:
Post a Comment