Results 1 to 2 of 2

Thread: jsp frames

  1. #1
    vasug is offline Member
    Join Date
    Jan 2010
    Posts
    7
    Rep Power
    0

    Default 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

  2. #2
    vasug is offline Member
    Join Date
    Jan 2010
    Posts
    7
    Rep Power
    0

    Default

    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

  1. navigation b/w frames
    By imrankhan in forum AWT / Swing
    Replies: 3
    Last Post: 03-19-2012, 01:25 PM
  2. Switching Frames
    By jonnytabpni in forum New To Java
    Replies: 1
    Last Post: 11-08-2009, 11:12 PM
  3. panes, frames and ddm's :|
    By skatefreak in forum New To Java
    Replies: 1
    Last Post: 08-09-2009, 11:21 AM
  4. Help regarding Frames
    By ramesh.8189 in forum AWT / Swing
    Replies: 14
    Last Post: 02-15-2009, 09:12 AM
  5. Grid layout frames GUI
    By fritz1474 in forum AWT / Swing
    Replies: 1
    Last Post: 10-15-2008, 03:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •