my program have database connectivity,and i have used
applet,which on click of button show the content of file(.mdb)
so as to grant permission to my applet i have used the following method
content of file: accs.txt
--------------------------------------...
grant {
permission java.lang.RuntimePermission
"accessClassInPackage.sun.jdbc.odbc";
permission java.util.PropertyPermission
"file.encoding", "read";
};
--------------------------------------...
and used this command:
appletviewer -J-Djava.security.policy=accs.txt searchtm.java
its working fine and showing output
but what i actually needed my program on web browser so i made html file with following code in it
search.html
--------------------------------------...
<html>
<head>
<title>SEARCH</title>
</head>
<body>
<h2>SEARCH</h2>
<applet code="searchtm.class" width=720 height=620>
</applet>
<hr>
</body>
</html>
--------------------------------------...
when i open my search.html it shows me the gui
but when i click on button it did not show me the output(i want it for local machine)
how to make it show the output on my search.html file as it was showing in applet by using appletviewer
plzzzz helpp
thanks in advance
* 9 hours ago
* - 3 days left to answ