Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How are Sessions are more advantage than using of Cookies or URLReWriting?

2 Answers   CTS,


How do cookies work in servlets?

0 Answers  


Which java framework is most popular?

0 Answers  


Servlet Chaining? How do you do the Filtering in Servlets?

6 Answers   HCL,


What does the term localization refer to?

0 Answers  


Why servlet is faster than jsp?

0 Answers  


Explain the difference between servlet and cgi?

0 Answers  


Explain the lifecycle of a servlet?

0 Answers  


What is the requirement of servlet config and servlet context implemented and how are they implemented?

0 Answers  


Explain get and post.

0 Answers  


What is SingleThreadModel interface?

0 Answers  


In jsp custom tags from child tags to how many levels of parent tags you can acess

1 Answers   Bosch,


Categories