I do not believe that it is possible to send a redirect to anything other
than the frame that is making the request. Instead of sending a redirect,
you'll probably need to send an HTML page containing some javascript which
then loads the login servlet into the full window. Something like:
<script language=javascript>
window.top.location.href = loginServlet;
</script>
I think that should do the trick.
Vickram
----- Original Message -----
From: "Sven E. van 't Veer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 14, 2000 5:05 AM
Subject: Redirection and framsets
> I'm doing a database application in servlets. After the user has logged
> in, I send a page with two frames to the client. The left side contains
> the menu and the right side is where the user can enter/alter data
> depending on the menu option chosen. In some cases the right side may
> contain two frames (top and bottom) where the user can enter search
> criteria in the top frame and the data is displayed on the bottom.
> I keep track of the users session through the session object. If the
> server invalidates the session after let's say 30 minutes of inactivity
> I do a sendRedirect to the loginservlet whenever the user clicks at any
> of the buttons. The loginservlet however displays the login page in the
> target frame but I want the page to be shown using the whole browser
> window. The code I'm using
> <clip clip>
> String url = baseUrl + "adminLoginServlet";
> res.setStatus(HttpServletResponse.SC_RESET_CONTENT);
> res.sendRedirect(url);
> <clip clip>
>
> Does anyone have any Idea on how to resolve this.
>
> Sven
>
> --
> Sven E. van 't Veer, llm.
> Departamento de Desenvolvimento
> Brasil Informatica.
> http://www.brvip.com.br
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html