In the case where the user times out, instead of sending back the login form
send back a page that only has a piece of javascript on it that will open
the login page in the "_top" window. Something like this (untested code):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<HEAD>
<TITLE>redirector page</TITLE>
</head>

<BODY>
        <SCRIPT language="JavaScript" type="text/javascript">
        <!--
        window.top.location = "http://your.server/login";;
        //-->
        </SCRIPT>
</BODY>

</html>

> -----Original Message-----
> From: Fawaz Ahmad [SMTP:[EMAIL PROTECTED]]
> Sent: 30 September 2002 11:40
> To:   [EMAIL PROTECTED]
> Subject:      Re: Loading full page
>
> Hello,
>
> Can someone please give me some advice on this issue.  I have a servlet
> that builds a form which has a top and bottom half.  When a button is
> pressed in the top half, the new information loaded stays in the top half
> because of the <form target="top"> or <form target=_self>.  The same goes
> for the bottom form.  Now if the user times out and I need them to log in
> again, this is obviously not determined until the user clicks a button on
> the form and the servlet realizes that the user has timed out.  When the
> user times out, it redirects them back to the login screen.  The only
> problem is that since the form target is set to either "top" or "bottom",
> it shows the login form either in the top frame or the bottom frame.  Is
> there anyway to load this page (as well as error pages) into the entire
> page rather than in the form target?
>
> Thanks!
>
> fuz
>
> __________________________________________________________________________
> _
> 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

--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.    Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

___________________________________________________________________________
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

Reply via email to