Solved

Frame problem

Posted on 2002-07-21
1
171 Views
Last Modified: 2010-04-01
Hi, all

I have created a page called index.jsp. It has 2 frames: a header frame and a main frame. When I click on a "Home" button on the main frame, the main frame shows home.jsp. But when I type (my server name)/home.jsp, I need to get to the index.jsp with home.jsp on the main frame. How can I do it? Thanks.
0
Comment
Question by:jl2001
[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
1 Comment
 
LVL 33

Accepted Solution

by:
knightEknight earned 50 total points
ID: 7169283
Put this in home.jsp:

<HTML>
<HEAD>
<SCRIPT language='javascript'>
 top.name = "topFrame";
 if ( top.name != self.name )
    top.location = "index.jsp";
</script>
</head>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
org.apache.jasper.JasperException: using jstl in jsp embedded jetty 13 747
struts hibernate integration example 28 158
print map entry 34 79
web application structure 18 135
Configuring Remote Assistance for use with SCCM
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 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