On Tue, 13 Nov 2001, Sunhild Copony wrote:

> [snip]
> Login is correctly accepted and than the servlet is executed - that would be
> allmost ok - (well not quite, because it's not so beautiful to get the login
> in a frame ...)

We're dealing with a case like this on the Tomcat administration webapp
being built for 4.1.  The application will run in a framed environment,
but we want the login page (whenever it's displayed) to take the full
window.

The solution was to add a little JavaScript at the top of the login.jsp
page:

  <script language="JavaScript" type="text/javascript">
    <!--
      if (window.self != window.top) {
        window.open(window.location, "_top");
      }
    // -->
  </script>

> BUT this happens just when Tomcat is restarted.
> The servlet is executed without asking for login when one login was succesful.
>

Note that, if you didn't restart your browser, this is actually a Tomcat
feature.  Sessions are saved and restored across Tomcat restarts, so your
previous login session is still valid.

To avoid this, you can do one of the following:
* Restart your browser.
* Delete the directory "$CATALINA_HOME/work/localhost/{webapp}" before
  restarting Tomcat to eliminate all the old stuff.

>
> Sunny
>

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to