Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
baba
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
baba
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic