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 |
How are Sessions are more advantage than using of Cookies or URLReWriting?
How do cookies work in servlets?
Which java framework is most popular?
Servlet Chaining? How do you do the Filtering in Servlets?
What does the term localization refer to?
Why servlet is faster than jsp?
Explain the difference between servlet and cgi?
Explain the lifecycle of a servlet?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Explain get and post.
What is SingleThreadModel interface?
In jsp custom tags from child tags to how many levels of parent tags you can acess