• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting inputstream from URL in applet  RSS feed

 
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
Bartender
Posts: 18549
61
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 ...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!