Solved

Get file from another site?

Posted on 1998-06-19
5
197 Views
Last Modified: 2010-04-16
I got an HTML file from web site eg:a, along with an applet which tries to get data from a text file. Now, I can only connect to the web server from where I got the HTML, but I cannot connect to another web server to get the data file.

Is it possible to do so?
0
Comment
Question by:hcyu
  • 2
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
rembo earned 50 total points
ID: 1223408

No, you can only connect to the server from which your
applet was loaded.  You will either have to use a CGI
script to grab the file from the other server or copy
it to the local system.  

-Tony

0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1223409
With Netscape Communicator 4.x and Microsoft Explorer 4.x you have an ability to get outside of traditional "sandbox" using signed applets.  Tha is signed applet can request the user running it a permission to perform certain operations, like connecting to an arbitrary server.  I was able to implement such an applet using Netscape's Capabilities API. Let me know if you need more details.
0
 

Author Comment

by:hcyu
ID: 1223410
Can I know more about the api, eg: where can i get this?
0
 

Author Comment

by:hcyu
ID: 1223411
Is it possible to do this in ie? I know ie implementing differently with netscape.
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1223412
The API is described under http://developer.netscape.com/docs/manuals/signedobj/capabilities/index.html

It allows signed applets and applets loaded from your CLASSPATH to request additional privileges.  The IE's security model is very different.  Refer to
http://www.javareport.com/features/9801/sommers.html for a comparative description of Netscape's and Microsoft's security models.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question