I think what you are saying is that you want to be able to edit rows in a database table both from a JSP and from a user's browser (presumably using
jdbc).
JDBC is subject to sandbox rules - this is why it runs in the applet viewer but not in a web browser. To get around this, you'd need to produce a signed applet.
Generally, it's not worth the trouble. It's easier to have the server do all the database access (also usually cleaner). If you want to edit the table using a grid control (e.g. Swing table) instead of HTML, what you'd do is open an http tunnel from inside the applet to the webserver and send and recieve updates via this tunnel.