Solved

Redirecting pages to the login page!

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
As a business owner, there are many things that keep you up at night. Profit margins, employee retention, human resource protocols, whether your product or service will remain competitive. When you own or manage a technology company that operates la…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

778 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