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 |
Some examples where generic servlet is used?
What are setComment and getComment methods in Cookies?
What do you mean by request dispatcher in servlet?
When to use doget() and when dopost()?
what do you understand by url rewriting?
When servlet object is created?
What is servlet instance?
Difference between forward() method and sendredirect() method ?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
how the HTML data stored in web server?
HTTP tunneling means what?
What are the phases of servlet life cycle?