Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

APPLET HTTP GET

Ok, I'm just starting JAVA, but i have much experience with many other languages (e.g. PHP, PERL, VB, etc...). I need a simple JAVA Applet that can get (http GET) an html page and display it. From what I've worked with in other languages this should be something fairly simple. I have no JAVA experience at all, but I really need this script ASAP. This JAVA  Applet will be an addition to a PHP suite that I am building for a client, and he needs this really soon! Thanks in advance experts.

gf3
gf3@bm3.org
0
gf3
Asked:
gf3
  • 3
  • 2
  • 2
1 Solution
 
CEHJCommented:
The problem here is that an applet could only do this without being signed against a page on its own original host
0
 
CEHJCommented:
So, if you do want to do this, you'd have to sign the applet or have an application
0
 
CEHJCommented:
Here's some info about applet signing:

http://www.mindprod.com/jgloss/signedapplets.html
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
objectsCommented:
Use the follwoing call freom your applet to display a page:

getAppletContext().showDocument(url, "_blank");
0
 
objectsCommented:
here's a tutorial on writing appets.:
http://java.sun.com/docs/books/tutorial/applet/index.html
0
 
WebstormCommented:
If you want to get a html page, you can use an URL object (package java.net)

    URL url=new URl("http://www.server.com/thepage.html");
    InputStream ins=url.openStream();

    // ... read from ins InputStream object

    ins.close();

0
 
WebstormCommented:
:-)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now