A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Generating HTML page from Applet
Joined: Jul 26, 2007
Jul 26, 2007 13:32:00
I have an
program that takes user input and display information on the Applet window. Is it possible to generate HTML page from within the applet to show the applet output in a web page separate from the Applet window?
Joined: Mar 22, 2005
Jul 29, 2007 09:24:00
Welcome to JavaRanch.
Not directly. There are a few options for achieving something similar, though.
The applet can manipulate the DOM of the HTML it's embedded in (and possibly other frame son that page) through the Common DOM API. A link to that can be found in the Applet FAQ.
The applet could write an HTML file to the local hard disk, and have the browser open that file. It would need to be signed to do that (links about which can again be found in the Applet FAQ).
The applet could post the pertinent information to a server-side component (e.g. a
), and could then ask to the browser to display a new page off the server that incorporates that information.
Do any of these sound like they might do what you're looking for?
Ping & DNS, my free Android app for network diagnostics
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Generating HTML page from Applet
HTML window reference needed in APPLET
The Java applet doesnt show up - instead white window !?
How to call one applet from another?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014