I like option 2, but instead of posting to the server, store the info in a
cookie (as per Mattias' prior email). First communicate with the applet
using the LiveConnect part of JavaScript and store the info in a cookie via
"document.cookie".

Download the following two PDF's from the old netscape site, they cover both
these concepts well:

ClientGuideJS13.pdf
ClientReferenceJS13.pdf

> -----Original Message-----
> From: Mattias Jiderhamn [SMTP:[EMAIL PROTECTED]]
> Sent: 15 January 2003 06:27
> To:   [EMAIL PROTECTED]
> Subject:      Re: JSP with Applet Question
>
> I'd suppose you have two options.
>
> 1. Let the applet communicate with the server. Preferably use the
> java.net.Url. It has a useful openStream(), otherwise see JavaDoc. The
> applet will maintain the session that the page it exists on has. We used
> an
> approach like this until we started to use IE specific ActiveX components
> instead.
>
> 2. When you switch tab, let a JavaScript read the state from the applet
> (the
> name of the applet gives you access to its public methods) and post that
> info to the server.
>
--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.    Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to