Instead of opening your own URL connection, from your applet class, use:

this.getAppletContext().showDocument(myUrl, myTarget);

where myUrl is a java.net.URL, including any parameters you wanted to pass to
the servlet.

...and myTarget is a String identifying an HTML frame.  (you can use "_top",
"_self", "_parent", "_blank", or the actual name of the frame you wish to
target).

Regards,
David.

Moiz Mehmood Hussain wrote:

> Hi
> We are writing an application which talks to a servlet by opening a url
> connection. We want the reponse from that servlet to be sent back to the
> browser instead of the application. Can anybody help ???
>
> Regards
> Moiz

--
David Bullock
Systems Architect - LISA Corporation

38 Greenhill Rd, Wayville S.A. 5034

http//www.lisa.com.au/
[EMAIL PROTECTED]

phone +61 8 8272 1555
fax +61 8 8271 1199

___________________________________________________________________________
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