Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Redirecting pages to the login page!

Posted on 2006-10-30
4
Medium Priority
?
251 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 28

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 28

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 28

Accepted Solution

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Ranking ecommerce websites is a vital process. You need to have a strong SEO (Search Engine Optimization) strategy. If you don’t have one, you are losing out on brand impressions, clicks and sales. Check this guide on how to improve website traffic …
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

927 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