How can a servlet refresh automatically if some new data
has entered the database?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
You can use a client-side Refresh or Server Push.
| Is This Answer Correct ? | 11 Yes | 4 No |
Answer / rajesh r
Automatic Database synchronization is not possible in
SERVLETS
we need to code for that manually..
In EJB entity Bean CMP , db sync in possible.
Thanks
Rajesh
Rajeshr1988@gmail.com
| Is This Answer Correct ? | 4 Yes | 0 No |
What is meant by servlet? What are the parameters of the service method?
What is the life cycle of a servlet?
What are the ways to handle multi-threading in servlets?
Can you send the mail from a servlet ,if yes tell how?
Why servlet is faster than jsp?
What do you mean by session tracking?
can we create more than ServletContext and ServletConfig in your application
How do servlets work?
program for RequestDispatcher in servlets?
What is difference between jsp and servlet?
Why doesn’t a servlet include main()? How does it work?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?