Results 1 to 2 of 2
Thread: jsp frames
- 04-16-2010, 03:17 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 7
- Rep Power
- 0
jsp frames
Hi,
I need to have a page with two frames in it. i.e. upper frame and lower frame.
The upper frame contains two links to the lower frame.
if the user clicks on one anchor tag(i.e. on upper frame), the related frame must be displayed in the lower frame.
If the user clicks on another anchor tag(i.e. on upper frame), the related frame must be displayed(override) in the lower frame.
Thanks in Advance
Vasu
- 04-16-2010, 05:00 PM #2
Member
- Join Date
- Jan 2010
- Posts
- 7
- Rep Power
- 0
we need to use target attribute to send to a frame.
Ex:
main page:
<html>
<head>
<title>Jsp Frameset</title>
</head>
<frameset rows="30%,*">
<frame src="frame1.jsp" name="frame1">
<frame src="frame2.jsp" name="frame2">
</frameset>
</html>
frame1.jsp
<html>
<body bgcolor="lightBlue">
<h2>Java Tutorial</h2>
<a href="http://www.w3schools.com" target="frame2">Visit W3Schools.com!</a>
<a href="http://www.yahoo.com" target="frame2">Visit yahoo.com!</a>
</body>
</html>
frame2.jsp
leave it as blank to display the required link data
Similar Threads
-
navigation b/w frames
By imrankhan in forum AWT / SwingReplies: 3Last Post: 03-19-2012, 12:25 PM -
Switching Frames
By jonnytabpni in forum New To JavaReplies: 1Last Post: 11-08-2009, 10:12 PM -
panes, frames and ddm's :|
By skatefreak in forum New To JavaReplies: 1Last Post: 08-09-2009, 10:21 AM -
Help regarding Frames
By ramesh.8189 in forum AWT / SwingReplies: 14Last Post: 02-15-2009, 08:12 AM -
Grid layout frames GUI
By fritz1474 in forum AWT / SwingReplies: 1Last Post: 10-15-2008, 02:04 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks