Discussion Locked

JDBC and HTML

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to connect to MS Access from HTML page thru' JDBC.

Applet gives secruity permission error.

What should i do. Can i use servlet. If yes how and where should i look to know about it.

5 replies

by shureshs

Hi,
You can set Policy for your applet using PolicyTool,its simple.Just follow the steps given in docs\tooldocs\win32\policytool.html.

---Nothing is Impossible
Shureshs

by davram

Hi, ukradi.

There certainly is a security problem, given by the fact that the applet cannot read (nor write) files without a specific permission from the client (i.e. signed applet). The files that the applet tries to read are the drivers (class files) that assure the JDBC-ODBC bridge.

You should and you can use a servlet, that receives the necessary data from the applet, and makes the required connection to the database. Telling you exactly how is a different and a little bit longer story. You should know, anyway, that the db access code is the same within the servlet. The problem is related to the web server that you should use to run the servlet.

You need to choose (if you didn't already) a web server that supports servlets, like Tomcat, or any other that suits your needs. The start point for this is, of course, java.sun.com/products/servlet/, where you will find documentations, tutorials, and a web server for you to download.

Hope this helps, and if you have any more specific questions we are around.

++
Dan

This discussion is closed to new replies.