• Post Reply Bookmark Topic Watch Topic
  • New Topic

Security restrictions with Applet.  RSS feed

 
Eusebio Floriano
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According with Wrtting Applets @ SUN�s Tutorial, Applets cannot read certain system properties.
But can applets read browser�s properties like type of browser or version of java plug-in ?

Regards,
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to allow the applet to script your web page; then it could access the Navigator object, which contains the information you're asking about. Of course, JS <--> Java interaction (aka LiveConnect) doesn't work in all browsers.
 
Joe Ess
Bartender
Posts: 9436
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read the version of the java plug-in from an applet. Have a look at Java Tester. It has a source code listing. I don't know of a canonical list of allowed vs. prohibited properties. You'll probably just have to test the ones you want to know about.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The list of properties applets can and can not read is two clicks away from the page mentioned in the original post.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!