I seriously have other issues right now! But I guess it does work. Tht's
how you get the validate function to check if you entered a float value
or not.

-----Original Message-----
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2003 7:02 AM
To: Struts Users Mailing List
Subject: Re: Multiple parameters


Are you sure you can use float arrays in an ActionForm.
I think ActionForm beans accept only String values. It's up to you to do
conversion from/to Float.

Rajat Pandit wrote:
> Hello mark,
> This is my situtation
> 
> This is an extract from my action form
> 
>     private float[] bidAmount;
> 
>     public float[] getBidAmount() {
>         return bidAmount;
>     }
> 
>     public void setBidAmount(float[] bidAmount) {
>         this.bidAmount = bidAmount;
>     }
> 
> 
> In my jsp I want this to store bidAmounts for different products and 
> hence an array implementation. This is what I wrote in my jsp.
> 
> <html:text property='bidAmount' styleClass="flat" size="3" 
> indexed="true"/>
> 
> I want it to print something like this for the multiple bidAmount 
> <input type="text" name="bidAmount[0]" > <input type="text" 
> name="bidAmount[1]" > <input type="text" name="bidAmount[2]" >
> 
> 
> But instead thisis what iam getting.
> <input type="text" 
> name="org.apache.struts.taglib.html.BEAN[0].bidAmount" size="3" 
> value="" class="flat" />
> 
> I don't know if this is right or wrong(nor do I care right now!!!) but

> whichever way I need to know how to iterate the data and also in case 
> of an error, it should re populate the html:text with the data from 
> the array.
> 
> Somebody help!! :(((999999
> 
> 
> -----Original Message-----
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 26, 2003 4:47 AM
> To: Struts Users Mailing List
> Subject: Re: Multiple parameters
> 
> 
> Need to know what your validator.xml looks like and form-bean stuff in
> your struts-config.
> 
> Just sticking <html:radio indexed="true" .. doesn't say very much.. 
> and
> just because its displayed doesn't mean its working..
> 
> So give more detail have read the documents. Forget about databases 
> for
> now and just think about getting your form properties into your
action.
> 
> is the form property an indexed property? How are they defined
> (actionForm or dynaactionform?)
> 
> 
> 
> On Sunday, October 26, 2003, at 05:30 AM, Rajat Pandit wrote:
> 
> 
>>Hello,
>> I am still stuck with the multiple parameter problem. I shall try to
>>explain the problem again. Maybe someone could help. I have a form, 
>>which has a number of records to be displayed. A checkbox, a textbox, 
>>two radio buttons with the same name. I have the following objective.
>>
>>A. perform validation for the checkbox that is selected. I need to
>>ensure that textbox contains value greater that zero and either of the
> 
> 
>>radio buttons where selected B. I need to iterate though the list of
>>data. Ie for the checkbox that was selected and then save the 
>>information in the database.
>>
>>I have tried using <html:radio indexed="true" which seems to work, but

>>I still cant figure out how to iterate though it as I will need to do
>>that
>>in the validate() and execute() method.
>>
>>Pls gimme some pointers or help :(((
>>
>>Really really stuck!
>>
>>
>>
>>
>>
>>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]
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> .
> 


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


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

Reply via email to