Oops no attachment with the mail. Ok ascii art to rescue, this is how my
form looks like


Checkbox        Strike Name             BidAmount               Type
[ ]             $100 to $200            _________               PUT ( )
Call ( )
[ ]             $300 to $300            _________               PUT ( )
Call ( )
[ ]             $400 to $500            _________               PUT ( )
Call ( )
[ ]             $600 to $700            _________               PUT ( )
Call ( )
[ ]             $800 to $900            _________               PUT ( )
Call ( )


Ok now I want to take the following rows of input. The bidAmounts and
either of the Type (either a put or a call). Now my problem are the
following.

Z. I need to select the following for the selected checkboxes
A. I need to validate that if bidAmount for the first strike is selected
then an associated type was selected or not
B. I need to have the bidAmounts given in an array and the type in the
other array
C. how do I ensure that the PUT and CALL for each row act as a group and
not that the total number of radion buttons act as a group :((

After a sucessfully validating I need to get the prices from the db and
show another screen with the prices. And yet another set of the same
screen but with only the same data which was selected the previous time.
This time I don't have to to display the bidAmount (provided by the
user) again (ie keep it hidden) 
Which this is context how do I do the following.

A. keep the array data as hidden type
B. how do I iterate though the data in my action class

Pls help me with this :(( I am not going nuts!! With the ever changing
specs :((




-----Original Message-----
From: Rajat Pandit [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 25, 2003 11:23 AM
To: [EMAIL PROTECTED]
Subject: Grouped information


Hello gurus,
I am really really stuck in a problem right now. Its like this. I have
to collect information about a set of information. Pls see the
screenshot attached for a better idea of what ia m trying to say. (don't
know if it's a good idea to _make_ everyone download my screenshot) 

Now the problem is that I need to take input for everyrow. That is store
the bidAmount, strikeId, and the mode selected buying or selling call in
an array and take it to the next page, the next page gets the prices and
displays the same form but with another column prices and a checkbox.
And then the user selects the checkbox for which he wants to buy the
insurance.

My bidForm has the following structure.

    private int productId = 0;
    private int stateId[];

    private byte action;
    private float bidAmount[];
    private int mode[];
    private float fee = 0;


But the radio buttons are not grouped for each row, instead they are
grouped on the whole. Also how do I carry the information to the next
page. 

Please consider this as really imporatant, coz I seriously have no clue
about this.

Generally something like <input type="text" name="bidAmount[]" .. >
would take the bidAMounts in an array but in this case I cant control
that.

Thanks again in adv for rescuing me.


Rajat Pandit | [EMAIL PROTECTED]
+91 612 3117606
[ Developer and Part Time Human Being]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to