jsp + frames

Hello

Can anyone please suggest me the solution to this

I have 3 frames in one jsp.

One frame comprises of radio buttons fields

Second frame contains one submit button

Third frame contains table in the form of grid

I want after pressing one radio button, when user presses submit button , data should get displayed in table

How can I do this or I can do this some other way around

Any suggestions厖厖厖?

[456 byte] By [sonia_lalita] at [2007-10-2 15:42:14]
# 1

It can be done like this, but it sounds ugly to me.

The form with the radio buttons needs to have a "target" specifying the resultsFrame.

ie

<form target="resultFrame">

<input type="radio">

...

</form>

The button needs to run javascript to submit the form in frame 1.

<input type="button" onclick="submitFormInOtherFrame()">

With cross-frame scripting I prefer to call functions/methods as opposed to directly reaching into the inner guts of a page and tweaking it. But that might just be me.

evnafetsa at 2007-7-13 15:29:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi,first u should have an table with values corresponding to the radio buttons, and when u press the submit button, the values should be populated in the table form (3rd form of ur JSP).for that the name of the fields in the table should be used with the "select" query.
vj2093a at 2007-7-13 15:29:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...