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
Who is responsible to create the object of servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
Write a command to get actual path of a servlet to the server?
If a servlet is not properly initialized, what exception may be thrown?
What is the difference between Server and Container?
What is servlet instance?
How can the referrer and the target urls be used in servlet?
Explain the jar and war files in servlet?
How does tomcat servlet container work?
Can you call a jsp from the servlet?
Which method of the httpservletrequest object is used?
What are different methods of session management in servlets?
What exactly are the functions of servlet?
What do you mean by singlethreadmodel interface?
Why jsp is better than servlet?