IntelliJ Java IDE
The moose likes Applets and the fly likes how to access database thru applet running in a browser???? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "how to access database thru applet running in a browser????" Watch "how to access database thru applet running in a browser????" New topic
Author

how to access database thru applet running in a browser????

baba
Greenhorn

Joined: Feb 18, 2001
Posts: 8
hi
iam in a trouble .... my applet can access local as well as remote database when run thru appletviewer...but when run thru a browser doesnt perform nething...please help me out as soon as possible.....iam stuck badly
thanx in advance
baba
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
Baba,
Please register with a proper name. "Baba" does not follow the conventions. See here for details: http://www.javaranch.com/name.jsp
If you do not register properly, your account will be disabled.
Thank you.
Stephanie
arunKumar sk
Greenhorn

Joined: Mar 02, 2001
Posts: 1
baba,
if u want ur applet to use both the local and remote resources
u need to sign the applet and u have to create a policy file to it
since u intend to use the local dtabase it is violation of security and ur applet becomes untrusted

hope got the message
bye
aroon
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

arun:
u have to create a policy file to it
where, how?
could you please elaborate on this, I have similar issues
though, I signed my jar files.
I changed my .hotjava\properties file to give permissions
to read/write top c:\temp
Thanks.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
baba
Greenhorn

Joined: Feb 18, 2001
Posts: 8
but the .java.policy file i tried with makes the applet acces the database(be it local or remote) only when run with appletviewer but now when run in a browser as an html file
pleaaz explain a bit extravagantly
thanx
 
 
subject: how to access database thru applet running in a browser????
 
Threads others viewed
Want Help...Ugent
iam able to run applet in appletviewer but iamnot able to openin browser...
Applet
Applet-Database communication
Aamer
IntelliJ Java IDE