why don't you let servlet put the html content in an object send
use http object send back to the applet? You can avoid the use
of temporary file.

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Huegele, Karin N.
Sent: Friday, September 17, 1999 7:05 AM
To: [EMAIL PROTECTED]
Subject: Servlet Output to new Target Browser
Importance: Low


Hello All!
I was wondering if somebody might have a better solution to the problem that
I have:
What I need to do is send data from an applet to a servlet, then have the
servlet format the data and launch a new browser window to display the
formatted data.
The solution that I came up with is:
1. open url connection from the applet to the servlet
2. send serialized object from the applet to the servlet
3. Servlet formats the data and outputs to a temporary html file
4. Servlet sendRedirect the url of the temporary file back to the applet
5. Applet reads the url and retrieve it using
getAppletContext.showDocument() to a new browser window.

I hate having to use temporary files for this.  I can see that it will give
me a lot of headaches.  Is there a better solution?

Thanks in advance!

-- karin --
______________________________________

Karin Huegele
Qwest Communications International, Inc.
Voice: (210) 323-3722
Email: [EMAIL PROTECTED] <mailto:[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

Reply via email to