One thing you could try is this:
When the servlet sees that the session has expired, it can send back a
special page which immediately (i.e. when it is loaded) turns around and
makes a new request for the login page with the target frame set to _top.
Since the servlet had all the original data from the previous request, it
can build all of that into the new URL for the login page, so that you don't
lose any data.
Hope this helps.
--
Martin Cooper
----- Original Message -----
From: "Bartsch Axel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 01, 2001 11:33 AM
Subject: servlet to set the target for the frame in the browser
> Hi,
>
> Does anybody know if it is possible for a servlet to setup the target for
the frame of the browser during processing?
>
> The situation:
> The user clicks to load a page: normally the page is loaded into the
center frame:
> but if the session has expired a login page shall be shown and this page
should be loaded into the _top frame (=the complete browser window).
>
> Now I am doing this with the following JAVASCIPT command set in the login
page:
>
> if (window != top) top.location.href = location.href;
>
> It works: but the problem is that this JAVASCRIPT command leads to a new
servlet request:
> and if you had originally used a POST request all the posted data is lost
and I also need that data for the login page.
> With a GET request it works.
>
> So is there a solution where the servlet during its processing can change
the frame target e.g. in case the session has expired?
>
>
>
> Axel Lannion/France
>
>
___________________________________________________________________________
> 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