I just had a similar problem.  After a user's session times out in my app,
it redirects to the login page.  The problem was, if the page was in a
frame, then the login page appeared in the frame, not in the top frame.  So
I used Javascript to do it:

<%
    if(somethingbad)
    {
        String myRedirectURL = "login.jsp";
        out.println("<SCRIPT>top.document.location.href=" +
            myRedirectURL + "</SCRIPT>");
    }
%>

Hope this helps.

Matthew

> From: Rupesh Choubey <[EMAIL PROTECTED]>
> Reply-To: Rupesh Choubey <[EMAIL PROTECTED]>
> Date: Tue, 16 Nov 1999 19:50:41 -0600
> To: [EMAIL PROTECTED]
> Subject: ERRORPAGE does paint over on the main FRAME - goes to the frame w
> hich throws exception.
>
> I have another error too.....I have a lot of frames and the error page which
> shows up - shows up only on the frame where the runtime error occured......I
> tried hard but couldnt make the error page paint OVER the entire page....i
> tried target=_top etc......
>
> Please let me know if you have any ideas.....Thanks.
> Rupesh.
>
> -----Original Message-----
> From: Rupesh Choubey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 16, 1999 5:38 PM
> To: [EMAIL PROTECTED]
> Subject: ERRORPAGE does not work on Netscape 4.6x
>
>
>
>
> Hi,
>
> I have ERRORPAGE setup for my JSPs....IT works beautifully on I.E.....It
> does not work on Netscape.....It displays the entire tag instead of
> redirecting to the errorpage...
>
> EXPERTS !!!! Please help with this issue.....Thank you....
>
> Rupesh.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to