Solved

Redirecting pages to the login page!

Posted on 2006-10-30
4
248 Views
Last Modified: 2011-09-20
Hi!

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/login.do")%>" class="tpLinks">SIGNOUT</a>

and in my Struts.config it is:
<action
            path="/jsp/resume/login"
            type="org.apache.struts.actions.ForwardAction"
            scope="request"
            parameter="/jsp/resume/master.jsp">
</action>

Its urgent, so help me out!
Pls guide!
JitenNikhil
0
Comment
Question by:JitenNikhil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 27

Expert Comment

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

Author Comment

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

Expert Comment

by:rrz
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".  
0
 
LVL 27

Accepted Solution

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

By reading this blog, MSPs will gain insight into how to improve communications with their clients as well as establish a more profitable business.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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