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

Nix.


Reply via email to