set header java

Auto Page Refresh Servlets with setHeader()

What is Page Refresh Servlets? Sometimes, user requires latest information on Cricket score or latest Share prices etc. where he is required to refresh the page, say by typing F5 key. To make user’s job easier, Servlet comes with setHeader("refresh", "5") method. With this method, the same Servlet is called…