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
Explain the difference between jsp and servlet?
What are different methods of session management in servlets?
Explain the concept of ssi ?
Explain the methods of request dispatcher in servlet?
What are the common methods that are included in the http servlet class?
Differentiate between get and post?
How do cookies work in servlets?
What is servlet attributes and their scope?
What do you mean by web applications? Explain web application directory arrangement?
Explain the role of dispatcherservlet and contextloaderlistener.
What is cgi?
How the typical servlet code look like ?
What are the phases of a servlet life cycle?
What is url encoding and url decoding
What are the different ways we can maintain state between requests?