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 |
Can we use servlets in JavaScript?
What is httpservlet class?
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
Explain the methods in Generic and HTTP Servlets?
how can we execute servelt? what the use ".war" or ".jar" file creation
how can we create object to a class in a jsp file?
5 Answers Accenture, L&T, TCS,
Explain the difference between get and post method in servlet?
What is the use of servletconfig interface?
What are the different ways we can maintain state between requests?
how many jsp scripting elements are there and what are those?
What if we pass negative value in load-on-startup?
What are the difference between session and cookies in servlet? Explain