File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session time out problem. with frames?

 
sureshreddy govindu
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1375
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would redesign the application without frames. They're rather antiquated.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic