JApplet to access Database on server from client maschine
Rituraj Jain
Ranch Hand
Joined: Nov 28, 2008
Posts: 37
posted
0
I have made a code in JApplet and trying to run that from Tomcat server by embedding that applet code in JSP. Coderuns fine untill unless i dont use any database access in it
but now i am trying to access Data base which is on server machine the applet code is not working
i know that i need to sign the applet to give it permissions of accessing database but how to sign it (give permission) thats what i don't know.
if i have to run the code through appletviewer then i can sign it with policy tool of java, but i case of server what to do i dont know???
please help!!!
following is error trace on the applet console.
Rituraj Jain
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
The policy tool has nothing to do with signing an applet. HowCanAnAppletReadFilesOnTheLocalFileSystem has all the information you need to get you started with signing an applet.
Thanks for your reply i am surely going to read every link on that tutorial but if you don't mind i would like to say that i don't want access any file on client system but i want to query database that is on server and dynamically generate applet.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
I know. Read that page first, then you'll understand :-)
Rituraj Jain
Ranch Hand
Joined: Nov 28, 2008
Posts: 37
posted
0
thanks buddy, i read all the links on that page plus all the links on other linked pages and i got what i wanted
should i post the solution/steps for creating and running signed applet here or i am not supposed to post the solution here??
If your solution was signing the JAR only then that's pretty straightforward. The biggest problem with it is that a lot of people just don't know they have to do it