aspose file tools*
The moose likes JDBC and the fly likes Problem with java database connectivity ?? java expert help needed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem with java database connectivity ?? java expert help needed?" Watch "Problem with java database connectivity ?? java expert help needed?" New topic
Author

Problem with java database connectivity ?? java expert help needed?

atul anand
Greenhorn

Joined: Oct 25, 2008
Posts: 5
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


scjp 5.0
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

Atul,
Welcome to JavaRanch!

This sounds like an applet security question since it works properly from outside the browser. I'll move your thread to our applets forum where people are more likely to know the answer.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with java database connectivity ?? java expert help needed?