This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Forward to outside Frameset