aspose file tools*
The moose likes Servlets and the fly likes session time out problem. with frames? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session time out problem. with frames?" Watch "session time out problem. with frames?" New topic
Author

session time out problem. with frames?

sureshreddy govindu
Greenhorn

Joined: Jun 08, 2011
Posts: 29
hi,

we are implementing web application with jsp and struts with frames., when session was time out login page is displayed in the target frame. how to display login page with out frames???
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1086
    
    1

when session was time out login page is displayed in the target frame


with this above line, I assume you have a page in which frames are used (for example - 2 frames). Now in one of the frames, you session is geting time out.
Now your requirement is when session is timed out then login page should replace whole page (which have 2 framaes)

Assuming I have mentioned requirement correctly then solution can be use windows.location.href command in Javascript to replace current window with new window(login page in your case). Look for some sample code related to windows.location.href command where parent window location is changed based on some condition.


~ abhay


Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61043
    
  66

I would redesign the application without frames. They're rather antiquated.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: session time out problem. with frames?