you need to reference the loginservlet to target frame _top .
the following code fragment, in the <head> of emitted html page,
will force it to take the whole browser. if you have it, chap. 12
of the o'reilly html book explains what's going on.
<script language="javascript1.2">
<!--
if ( top != self) {
top.location.href = location.href;
}
//-->
</script>
robert young
On Monday, February 14, 2000 05:06, Sven E. van 't Veer [SMTP:[EMAIL PROTECTED]] wrote:
> 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.
___________________________________________________________________________
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