Hey!
If I interpret your question correctly, you just want to display your HTML
document. Your servlet is going to stream back your document to the requesting
browser. No intermediate HTML.
You can use the applet context
theApplet.getAppletContext().showDocument(theURL, name);
This will allow your document to displayed by the browser, where
'theApplet' is your applet that is running in the browser.
See the JDK docs in package java.applet for many ways to display
the HTML document.
Sans adieu,
Danny Rubis
RVASUDEV wrote:
> Hi,
>
> Sorry for the partly off-topic question.
>
> > We have an applet which uses URL and URLConnection classes to
> > POST an HTTP request to a web server/app server combo,
> > and it can read the response, which is in HTML format, using
> > getInputStream on the URConnection object.. How can
> > this output be displayed as rendered HTML by the applet ?
> >
> > Can it be done using Javascript ? Or Swing (If Swing is
> > a possibility, does it work with the Java version below ?)
> > Or are there any (free) Java components which have this
> > functionality and can be included in the applet ?
> >
> > Browser is Netscape 4.7.
> > Java version supported by the browser is 1.1.5
> >
> > TIA
> > Vasudev
> >
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > Vasudev Ram
> > Infosys Technologies Limited
> > Pune, India
> > Email : [EMAIL PROTECTED]
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html