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

getting inputstream from URL in applet

 
Ruud Steeghs
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an applet I make a connection to a URL and subsequently want to get an InputStream from this URL to read its contents. This throws a SecurityException.
Why is this? I've gone through some previous postings and read something about applet "only being able to connect to server is was loaded from". Is this the problem?
Cheers,
-Ruud.
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep.
 
Nishith Prabhakar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes ... Applets can make network connections to only their host ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic