A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
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 networking tools app
It is sorta covered in the
JavaRanch Style Guide
subject: Generating HTML page from Applet
The Java applet doesnt show up - instead white window !?
HTML window reference needed in APPLET
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