Solved

Get file from another site?

Posted on 1998-06-19
5
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

728 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