This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Forward to outside Frameset 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 "Forward to outside Frameset" Watch "Forward to outside Frameset" New topic
Author

Forward to outside Frameset

kat luna
Greenhorn

Joined: Jul 20, 2001
Posts: 16
Hi,
We are developing an application where the user is within a frameset once they are succesfully logged in. Each interior page contains forms, data, etc, and at the top of each jsp we verify that the user is in the session with the following code:
<% form.setSession(request.getSession());
if (!sessionManager.alreadyLoggedIn(form.getUserId())) {
sessionManager.logout(form.getUserId()); %>
<jsp:forward page="SessionExpired.jsp"/> <%
} %>
However this code displays the Expired page inside the frameset. I would like to forward outside of the frames so that the menu bar is no longer visible and the user must log in again but since forward doesn't have a "target" attribute, I'm not sure how to do this.
Does anyone know how to achieve this using jsp:forward? Or is there a better way to get outside the frames if the user is not found in the session?
thanks!
kat
 
 
subject: Forward to outside Frameset