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:
> > >
> > > <script language="JavaScript" type="text/javascript">
> > > <!--
> > > if (window.self != window.top) {
> > > window.open(".", "_top");
> > > }
> > > // -->
> > > </script>
> > >
> > > 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]>