I created two frames which respectively contain two links.
When the first frame gets clicked, I would like to display a JSP page in the second frame.
But I can't get it to work. When the first frame gets clicked, it opens the JSP page in a new window.
I paste some of my code.
This is my main.jsp
<html>
<frameset cols="50%,50%">
<frame src="frame1.jsp">
<frame src="frame2.jsp">
</frameset>
</html>
frame1.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Frame 1 with links</title>
</head>
<body>
<body bgcolor="lightBlue">
<h2>Java Tutorial</h2>
<a href="subframe1.jsp" target="frame2.jsp"> tracking system</a>
<a href="subframe2.jsp" target="frame2.jsp">data information</a>
</body>
</html>
frame2.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
</body>
</html>
subframe1.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="insertData.jsp" action="post" >
DATA ID:<input type="text" name="data_id"><br>
East:<input type="text" name="east"><br>
North:<input type="text" name="north"><br>
<input type="submit" value="Save">
</form>
</body>
</html>
How can I fix that?