I have used ORACLE 10g as database and JSP as my front end.

When users presses tabs data is fetched from the server and displayed at the front end. I want to show an ALERT box in the front end when table is deleted in the back end or the connection to server is broken when a user presses the tab.

How can I do it? ALERT box should display:

1. connection error to server when there is error in connection to server

2. table is deleted when table is deleted in the backend while data is being fetched from the front end by pressing the tab.