This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Frameset problem when session times out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "Frameset problem when session times out" Watch "Frameset problem when session times out" New topic

Frameset problem when session times out

glenn spjuver

Joined: Jun 29, 2004
Posts: 11
I'm using a frameset (no comments please) for my very simple layout with a left-menu frame and a content frame. The problem, which i think is related to tomcat, is that if a select a menu item after the session has timed out, the menu appears in the content frame aswell. The navigation works fine if the session has not timed out. This problem is driving me crazy, does anyone have any idea what it could be? Perhaps it's not even a tomcat related problem, but since it occurrs only when the session has timed out, that would be my guess.
The problem occurrs both in Firefox and IE.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Tomcat (or any other server for that matter) knows nothing about frames.
Each frame makes its own request to the server.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
i'm guessing that you timed-out session causes the flow to redirect to some error page or so? (maybe implicitely...)

what you need to do in this case is to make sure that the whole frameset gets rebuilded, not only the target frame.

that should fix the issue.

and as already said, this is frameset-related, has nothing to do with the servlet container...

glenn spjuver

Joined: Jun 29, 2004
Posts: 11
Ok, thanks for the help, I'll look into that. My first though was that Tomcat perhaps mixed the responses up or something, but I guess that's kind of far-fetched since that would mean it would do the same thing whenever 2 or more people make concurrent requests.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Frameset problem when session times out
It's not a secret anymore!