Re: Frame annoyance

2002-07-25 Thread Craig R. McClanahan



On Thu, 25 Jul 2002, Nikola Milutinovic wrote:

> Date: Thu, 25 Jul 2002 07:31:49 +0200
> From: Nikola Milutinovic <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Frame annoyance
>
> > That is perfect.  I was hoping to avoid JavaScript, but I couldn't find any
> > other way.
>
> > > We ran into this exact issue with the admin webapp in Tomcat 4.1.x (which
> > > also uses frames), and solved it by adding the following to the top of the
> > > login page:
> > >
> > >   
> > > <!--
> > >   if (window.self != window.top) {
> > > window.open(".", "_top");
> > >   }
> > > // -->
> > >   
> > >
> > > This causes the login page to immediately redisplay itself if it gets
> > > shown inside a frame.
>
> There is no other way. There is no way for Tomcat to know "in which
> frame the client is". It is up to the browser to play with displaying of
> HTML and frames. And the only way to do something on the client side is
> to use J(ava)Script.
>

More generally, Tomcat, or any other web server, has no clue what a
"frame"  is.  All it does is respond to requests that come in, and the
requests for each frame are (from the perspective of the server) all
separate.

> Nix.
>

Craig



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Frame annoyance

2002-07-24 Thread Nikola Milutinovic

> That is perfect.  I was hoping to avoid JavaScript, but I couldn't find any
> other way.

> > We ran into this exact issue with the admin webapp in Tomcat 4.1.x (which
> > also uses frames), and solved it by adding the following to the top of the
> > login page:
> >
> >   
> > 
> >   
> >
> > This causes the login page to immediately redisplay itself if it gets
> > shown inside a frame.

There is no other way. There is no way for Tomcat to know "in which frame the client 
is". It is up to the browser to play with displaying of HTML and frames. And the only 
way to do something on the client side is to use J(ava)Script.

Nix.



Re: Frame annoyance

2002-07-24 Thread Rick Fincher

Thanks Craig,

That is perfect.  I was hoping to avoid JavaScript, but I couldn't find any
other way.

Thanks again!

Rick

- Original Message -

>
>
> On Wed, 24 Jul 2002, Rick Fincher wrote:
> >
> > Hi,
> >
> > I have a webapp that uses Tomcat login security and html frames.  If a
> > user's session times out, and the user tries to access the webapp Tomcat
> > calls the login page as expected.
> >
> > The problem is that the old frame is still in the browser and the login
page
> > appears in whichever frame was last active, with all of the other frame
junk
> > still on the page.
> >
> > Is there a way to get Tomcat to call the login page with a target of
_top so
> > it clears the old frames out of the browser?
> >
>
> We ran into this exact issue with the admin webapp in Tomcat 4.1.x (which
> also uses frames), and solved it by adding the following to the top of the
> login page:
>
>   
> 
>   
>
> This causes the login page to immediately redisplay itself if it gets
> shown inside a frame.
>
> > Thanks,
> >
> > Rick
> >
>
> Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Frame annoyance

2002-07-24 Thread Craig R. McClanahan



On Wed, 24 Jul 2002, Rick Fincher wrote:

> Date: Wed, 24 Jul 2002 18:37:19 -0400
> From: Rick Fincher <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Frame annoyance
>
> Hi,
>
> I have a webapp that uses Tomcat login security and html frames.  If a
> user's session times out, and the user tries to access the webapp Tomcat
> calls the login page as expected.
>
> The problem is that the old frame is still in the browser and the login page
> appears in whichever frame was last active, with all of the other frame junk
> still on the page.
>
> Is there a way to get Tomcat to call the login page with a target of _top so
> it clears the old frames out of the browser?
>

We ran into this exact issue with the admin webapp in Tomcat 4.1.x (which
also uses frames), and solved it by adding the following to the top of the
login page:

  

  

This causes the login page to immediately redisplay itself if it gets
shown inside a frame.

> Thanks,
>
> Rick
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Frame annoyance

2002-07-24 Thread Mike Jackson

I think the answer is javascript.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 3:37 PM
To: Tomcat Users List
Subject: Frame annoyance


Hi,

I have a webapp that uses Tomcat login security and html frames.  If a
user's session times out, and the user tries to access the webapp Tomcat
calls the login page as expected.

The problem is that the old frame is still in the browser and the login page
appears in whichever frame was last active, with all of the other frame junk
still on the page.

Is there a way to get Tomcat to call the login page with a target of _top so
it clears the old frames out of the browser?

Thanks,

Rick




--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: