How can a servlet refresh automatically if some new data
has entered the database?
Answer Posted / vikas kapoor
Well you can use
response.setHeader("Refresh",5);
This will update the browser after every 5 seconds
response.setHeader("Refresh","5",
URL="http://localhost:8080/myServlet/MyRequest.do
This will refresh MyRequest.do after 5 seconds
Is This Answer Correct ? | 28 Yes | 0 No |
Post New Answer View All Answers
When jsessionid is created?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is servlet container?
What is the process for chaining servlet?
Can you explain in detail 'javax.servlet' package?
Write a simple servlet program to print the contents of html.
Explain Action Servlet?
Explain servlet.
Given the request path below, which are context path, servlet path and path info?
What is load-on-startup in servlet?
What is java servlet?
Whether we can get deadlock situation in servlets?
What exactly are the functions of servlet?
Explain is servlet mapping?
What is servlet attributes and their scope?