• Post Reply Bookmark Topic Watch Topic
  • New Topic

Forward to outside Frameset  RSS feed

kat luna
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!