Solved

Redirecting pages to the login page!

Posted on 2006-10-30
4
243 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
Comment Utility
><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
Comment Utility
Hi rrZ!
What do you mean by "nameOfParentWindow"!
The solution you provided opens a new window !
0
 
LVL 27

Expert Comment

by:rrz
Comment Utility
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
Comment Utility
If you are still not there, then try target="_parent"  or  target="_top".  
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

11 Experts available now in Live!

Get 1:1 Help Now