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.

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Wesley Choate
> Sent: Wednesday, January 15, 2003 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP with Applet Question
>
>
> Hmm, that sounds like an interesting idea.  Could you point me to a
> reference on how I might do that.  All of our clients are required to use
> IE, so the whole Netscape / IE Dynamic HTML problem won't be of concern.
>
> Thanks,
> Wesley Choate
> Programmer / Analyst
> Lavender & Wyatt Systems, Inc.
> [EMAIL PROTECTED]
> 5805 West 12th Street
> Little Rock, AR  72204
> (501)664-7039
>
> "Should array indices start at 0 or 1? My compromise of 0.5 was rejected
> without, I thought, proper consideration." - Stan Kelly-Bootle
>
>
>
>
>              Mattias Jiderhamn
>              <mattias@EXPERTSY
>              STEM.SE>                                                   To
>              Sent by: A                [EMAIL PROTECTED]
>              mailing list                                               cc
>              about Java Server
>              Pages                                                 Subject
>              specification and         Re: JSP with Applet Question
>              reference
>              <JSP-INTEREST@JAV
>              A.SUN.COM>
>
>
>              01/15/2003 10:09
>              AM
>
>
>              Please respond to
>               A mailing list
>              about Java Server
>                    Pages
>              specification and
>                  reference
>              <JSP-INTEREST@JAV
>                 A.SUN.COM>
>
>
>
>
>
>
> It might be possible for you to just hide the applet when swithing tabs.
> All
> tabs on one page and switch using DHTML.
>
> Otherwise I'm quite sure you can not let the applet "live" while
> not on the
> page. You would have to store info in the session somehow, and
> then re-init
> the applet. I don't know if applets can read/set cookies, but I
> suppose you
> would otherwise send information back to your server and store in the
> session, the send that information back to the applet as parameters.
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Wesley Choate
> > Sent: Wednesday, January 15, 2003 4:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP with Applet Question
> >
> >
> > That would be nice, but here at my job they want the page with
> the applet
> > to look like a "tab" on a group of tab links that users can click
> > on.  They
> > want the applet to appear to be embedded in with the others.  So,
> > I need to
> > be able to let them change "tabs" on the top, but be able to
> come back to
> > the applet's tab, and keep the applet the same.
> >
> > Wesley Choate
> > Programmer / Analyst
> > Lavender & Wyatt Systems, Inc.
> > [EMAIL PROTECTED]
> > 5805 West 12th Street
> > Little Rock, AR  72204
> > (501)664-7039
> >
> > "Should array indices start at 0 or 1? My compromise of 0.5 was rejected
> > without, I thought, proper consideration." - Stan Kelly-Bootle
> >
> >
> >
> >
> >              Brian P Bohnet
> >              <bbohnet@ORATION.
> >              NET>
> To
> >              Sent by: A                [EMAIL PROTECTED]
> >              mailing list
> cc
> >              about Java Server
> >              Pages
> Subject
> >              specification and         Re: JSP with Applet Question
> >              reference
> >              <JSP-INTEREST@JAV
> >              A.SUN.COM>
> >
> >
> >              01/15/2003 09:33
> >              AM
> >
> >
> >              Please respond to
> >               A mailing list
> >              about Java Server
> >                    Pages
> >              specification and
> >                  reference
> >              <JSP-INTEREST@JAV
> >                 A.SUN.COM>
> >
> >
> >
> >
> >
> >
> > Have you thought about opening a separate window for the user, then
> > close it when the opener closes, which will allow them to leave the
> > applet running, yet move to other pages with the opener window. This
> > will also allow you to control the size of the window where the applet
> > will reside and the window will have no navigation bars/buttons which is
> > a nice look.
> >
> > Just a thought,
> > Brian P. Bohnet
> >
> >
> > Wesley Choate wrote:
> >
> > >I am writing a page which has an applet on it.  Is there anyway using
> > >sessions or something to keep the applet "alive" even if the user
> changes
> > >pages, and then reload it if they come back?  So that if they
> > come back to
> > >the page the applet was on then it shows them where they were
> at, not at
> > >the beginning again?
> > >
> > >Thanks,
> > >Wesley Choate
> > >Programmer / Analyst
> > >Lavender & Wyatt Systems, Inc.
> > >[EMAIL PROTECTED]
> > >5805 West 12th Street
> > >Little Rock, AR  72204
> > >(501)664-7039
> > >
> > >"Should array indices start at 0 or 1? My compromise of 0.5
> was rejected
> > >without, I thought, proper consideration." - Stan Kelly-Bootle
> > >
> > >=================================================================
> > ==========
> >
> > >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
> > >
> > >
> >
> > ==================================================================
> > =========
> > 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
> >
> > ==================================================================
> > =========
> > 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
> >
>
> ==================================================================
> =========
> 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
>
> ==================================================================
> =========
> 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
>

===========================================================================
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