Thank you for your suggestion!
I haven't done much JavaScript so far.  I was wondering if:
1. Is it possible to initiate the process from the applet instead?  So, say,
the applet calls a javascript method and passing the serialized object.  I
understand that I could use netscape.javascript.JSObject class.  I was
wondering how it would work on IE.
2. Does the data has to be imbedded in the form as String?  Is there anyway
to pass an object from the JavaScript form to the servlet?
I am reading up on JavaScript on this, but any help that you could lend on
this is much appreciated.
Thanks!

-- karin --

-----Original Message-----
From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 17, 1999 10:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Servlet Output to new Target Browser


1. JavaScript calls the applet to create the data
3. applet serializes data to a string (using
ObjectOutputStream(StringWriter))  - you'll need some extra plumbing
though
2. a method returns the data JavaScript which stores it in a hidden
field on a form pointing to your servlet
3. JavaScript SUBMITs the form to the servlet which takes the field
and un-serializes it and formats it as whatever then sends a response
back.

If you get the target of you form right JS will handle popping up the
new window.

The only trouble with this is that JS can be a bit unstandard about
talking to applets.





Nic Ferrier
Tapsell-Ferrier Limited
http://www.tapsellferrier.co.uk

"Use Ockham Luke"

___________________________________________________________________________
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