How can a servlet refresh automatically if some new data
has entered the database?

Answers were Sorted based on User's Feedback



How can a servlet refresh automatically if some new data has entered the database?..

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

How can a servlet refresh automatically if some new data has entered the database?..

Answer / guest

You can use a client-side Refresh or Server Push.

Is This Answer Correct ?    11 Yes 4 No

How can a servlet refresh automatically if some new data has entered the database?..

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

Post New Answer

More Servlets Interview Questions

Explain request dispatcher and its methods.

0 Answers  


we cant Override Jsp Service method?Why?

4 Answers   Infrasoft, Mind Tree,


What are different methods of session management in servlets?

0 Answers  


What is servlet and its advantages?

0 Answers  


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

0 Answers   Bosch, EF,






How can we implement a jsp page?

0 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,


What is the use of request dispatcher interface?

0 Answers  


what is the control flow in servlet when we send a request?

5 Answers   TCS,


What are the uses of servlet

0 Answers  


What are the features added in Servlet 2.5?

0 Answers  


How will two or three servlets interact or communicate with each other?

0 Answers  


Categories