Article View: aus.computers.java
Article #1198Re: HTML within Java?
From: Dinesh Munjal
Date: Sun, 11 Jul 1999 00:00
Date: Sun, 11 Jul 1999 00:00
54 lines
2358 bytes
2358 bytes
hi,
What want to do is possible by a simple feature of java..
here are two lines of code showing how in one of programs written by me i have
called html pages and images.
-------------------------------
url = new URL("http://www.arch.usyd.edu.au/~dmun0275/java/Assleft.htm");
this.getAppletContext().showDocument (url , "mid");
-------------------------------
In the above two lines a string was converted to a URL type variable and then
it was called in the second line. "mid" if the frame name where that document
was displayed.
here is the URl if u want to see what i am talking about.
http://www.arch.usyd.edu.au/~dmun0275/java/javamain.htm
""So its very much possible and Java does it for you...""
the only limitation is the use of frames or you open another browser window.
if you are interested to see full code of the application you can send me an
email and i can send u the java code of that program.. Email address is on the
address given above.
I hope i was of some help...
Dinesh....
Trembath wrote:
> Hi,
>
> Just wondering if anyone can give me any pointers on how Id go about
> displaying HTML within a Java Application/Applet.
>
> Am I crazy?
>
> Are there third party packages availible?
>
> Are there built in classes that will do it?
>
> It doesnt have to be anything too powerfull. Im not looking to rewrite
> netscape. But it would help me no end if I could send an HTTP request from
> within a program and display the relativly simple HTML it returns (a table
> is about the most complicated thing I need to display).
>
> Cheers
>
> -Daniel
Technical Details
Message-ID:
<37876EB1.FC73E3B1@mail.usyd.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<danielt-0907992124110001@192.168.0.17>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,1d1da130233252e1 X-Google-Attributes: gid10d6db,public From: Dinesh Munjal <dmun0275@mail.usyd.edu.au> Subject: Re: HTML within Java? Date: 1999/07/11 Message-ID: <37876EB1.FC73E3B1@mail.usyd.edu.au> X-Deja-AN: 499488408 Content-Transfer-Encoding: 7bit References: <danielt-0907992124110001@192.168.0.17> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.usyd.edu.au X-Trace: metro.ucc.usyd.edu.au 931622590 23949 10.0.52.91 (10 Jul 1999 16:03:10 GMT) Organization: The University of Sydney, Australia Mime-Version: 1.0 NNTP-Posting-Date: 10 Jul 1999 16:03:10 GMT Newsgroups: aus.computers.java