How can a servlet refresh automatically if some new data has entered the database | Eklavya Online

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

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