On Mon, 24 Jan 2000, Reiner Lange wrote:

> Hello to all!
>
> Is it possible to send parameters from an applet
> to a servlet with the POST method and to get
> a HTML page back with
> getAppletContext().showDocument() ?

A simple trick to implement the desired functionality is to have your
servlet write out a predefined_path/predefined_name.html file on the
server and then have your applet call showDocument() with the above
mentioned file. Should your file be too large, make sure showDocument() is
called when the I/O has finished on the server.

Code examples and details are included in a Javaworld tip.

Kostas



> Receiving the HTML page with an
> InputStream (line by line) works fine,
> but not showing directly the HTML page
> with showDocument().
>
> Thanks in advance
> Reiner
>
> ___________________________________________________________________________
> 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

Reply via email to