HTML Frames and servlets. Retrieving data from different frames

Discussions

Web tier: servlets, JSP, Web frameworks: HTML Frames and servlets. Retrieving data from different frames

  1. Dear Sirs,

    I have an HTML page with 3 frames (top, middle and bottom).

    <HTML>
    <HEAD>
    <TITLE>Whatever</TITLE>
    </HEAD>
    <FRAMESET ROWS="75%, *" COLS="*, 40%">
    <FRAME SRC="top">
    <FRAME SRC="middle">
    <FRAME SRC="bottom">
    </FRAMESET>
    </HTML>

    All the frames point at servlets.

    The top frame contais a title and some information.

    The middle frame contains a form with textboxes, radio buttons and the such.

    the bottom frame contains the "Ok/Cancel" button.

    What I am trying to achieve is, once the user clicks "ok" in the bottom frame,data from the middle frame will be collected and send to yet another new HTML page loaded by the bottom frame into the middle frame.

    I can not figure out any way this work. Since frames call different servlets apparently I can not retrieve data from one frame using a button in another.

    Any ideas?

    Thanks for the time using in reading this post.

    Aral.
  2. Overall I think you are getting into trouble. You can use javascript so that when the user on the bottom frame clicks a buton a form on the middle frame is submitted... Whay are you using frams?