Solved

Redirecting pages to the login page!

Posted on 2006-10-30
4
244 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java.util.concurrent.Callable way of creating threads 2 102
tomcat users xml 7 106
Help with LDAp login using jsp 6 113
iterator example remove 8 74
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now