Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Redirecting a framed page when session expires Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Redirecting a framed page when session expires" Watch "Redirecting a framed page when session expires" New topic
Author

Redirecting a framed page when session expires

kapil Gupta
Ranch Hand

Joined: Dec 17, 2001
Posts: 89
Hi,
My jsp page has two frames. The second frame contains a form which submits on the same page. If the session has expired, I redirect the control to the login page using sendRedirect method. But being a framed page, login page opens in one frame instead of the whole page. How can I open the login page in full browser window?
Thanx.
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
When the user times out, first do a redirect to an intermediate page, which will open the login page in the main window using javascript
------------------
Shubhrajit
[This message has been edited by Shubhrajit Chatterjee (edited December 17, 2001).]


Shubhrajit
kapil Gupta
Ranch Hand

Joined: Dec 17, 2001
Posts: 89
Thanks Shubhrajit.
Your Solution worked but it causes some delay in displaying the error page. Is there any way I can redirect the page without using an intermediate page?
Originally posted by Shubhrajit Chatterjee:
When the user times out, first do a redirect to an intermediate page, which will open the login page in the main window using javascript

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirecting a framed page when session expires