Redirecting pages to the login page!

Posted on 2006-10-30
Last Modified: 2011-09-20

I am using a 'Master.jsp' that uses "iframes".
In my header.jsp  I have a 'SignOut' link that should redirect the page to the Login.jsp!
But with the code I have written, it submits only the header.jsp and opens a new Master.jsp inside the header.jsp with the header.jsp replaced by login.jsp!
How do I redirect the entire master.jsp to the login.jsp!
The code is something as:
In the JSP:<a href="<%=response.encodeUrl(request.getContextPath()+"/jsp/resume/")%>" class="tpLinks">SIGNOUT</a>

and in my Struts.config it is:

Its urgent, so help me out!
Pls guide!
Question by:JitenNikhil
  • 3
LVL 27

Expert Comment

ID: 17834530
><a href="<%=response.encodeUrl(request.getContextPath()+"/jsp/resume/")%>" class="tpLinks">SIGNOUT</a>  
<a href="<%=response.encodeUrl(request.getContextPath()+"/jsp/resume/")%>" class="tpLinks" target="nameOfParentWindow">SIGNOUT</a>

Author Comment

ID: 17834585
Hi rrZ!
What do you mean by "nameOfParentWindow"!
The solution you provided opens a new window !
LVL 27

Expert Comment

ID: 17834691
Sorry, I mean the main window that displays  Master.jsp  .  If it doesn't have a name. then  try target="parent"  or  target="top".  
LVL 27

Accepted Solution

rrz earned 500 total points
ID: 17837894
If you are still not there, then try target="_parent"  or  target="_top".  

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Display the newly inserted values 3 81
bean mapper frameworks 5 63
Set up Wildfly 10 8 419
withoutString  challenge 40 207
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question