aspose file tools*
The moose likes JSP and the fly likes Issues with session expiry in case of Multple Frames in jsp Page. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Issues with session expiry in case of Multple Frames in jsp Page." Watch "Issues with session expiry in case of Multple Frames in jsp Page." New topic
Author

Issues with session expiry in case of Multple Frames in jsp Page.

Jyotiprakash Sundaray
Greenhorn

Joined: Sep 11, 2012
Posts: 2
Hi,
I am facing an issue while going ahead with a session expiry on a jsp page containing multiple frames and it would be great if I could get any help on this. The details are as below
1. A.jsp has 3 frames f1(header),f2(left pane) and f3(dynamic content frame).
2. f1 and f2 consist of 2 static jsp pages B.jsp and C.jsp
3. f2 consists of URLs that point to individual jsp pages with target as f3.
4. When session has expired or cookies have been deleted, on clicking on any link within f2 should logout and proceed to the login page.
5. However, instead of the entire page proceeding to the login page, only f3 shows the login page. I understand this is because the URLs within f2 have the target set to f3.

I understand frames are not a good thing to use but then due to certain constraints I have to stick to frames.

I searched a lot over the internet but somehow didnt find a solution that could help.

Any help on this would be appreciated.

Thank you.
RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 62

Hi,
Instaed of frames jsp Include can be helpful.
Vishal Shaw
Ranch Hand

Joined: Aug 09, 2012
Posts: 179
Hi,

You can use document.href.location to point to the page of your choice . The whole page will be loaded

Vishal


Programming is about thinking, NOT coding
Jyotiprakash Sundaray
Greenhorn

Joined: Sep 11, 2012
Posts: 2
Thanks RatiKant, but unfortunately I have to keep the frames. Thanks Vishal for the suggestion, it did help. The problem now is that I dont even want an intermediate page, just a message to the user, like a pop-up and then log him out. Any suggestions on best practices on this one?
Ashwini Kashyap
Ranch Hand

Joined: Aug 30, 2012
Posts: 90
Hi,
For displaying message to the user, make use of alert() in javascript.
Then submit the form to the server wherein the logout feature gets executed.

Thanks and Regards,
Ashwini Kashyap | akashyap@infocepts.com | www.infocepts.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issues with session expiry in case of Multple Frames in jsp Page.