Forums Register Login
response.addHeader() method
inside the dopost() method of a servlet i have a line


what does the above code mean?

It will auto refresh your page on submit after every 1 second time duration.

When the browser will see that header, the page will be refreshed after 1 second. I won't say every 1 seconds as the next time it is up to the servlet to add that header or not. See more details on this page...
Even i think its Refreshing the page in the client-Browser
Looking through the RFC 2616 for HTTP1.1 I dont see a "refresh" header defined for responses so this would depend on non standard browser behavior. See the link Ankit gave for the Meta alternative.
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database

This thread has been viewed 3200 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 17, 2019 16:05:45.