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
What do you mean by cgi?
What is servlet instance?
What is pure servlet?
What is api in servlet?
What is dispatcher servlet?
What is Client-Server Computing?
Write a hello world program using servlets.
What do you mean by singlethreadmodel interface?
What is servlet and list its types?
Should I override the service() method?
Explain the architechure of a servlet?
What is the procedure for initializing a servlet?
Explain the working of service() method of a servlet.
What is called a session?
explain the advantages of servlet life cycle?