You can also create a Hidden form field for each value in the Array.
Something like this :

for(var i = 0 ; i < theArray.size ; i++)
    document.writeln("<INPUT TYPE='HIDDEN' NAME='theArray_'" + i + "'
VALUE='" + theArray[i] + "'>");

----- Original Message ----- 
From: "as as" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 1:42 PM
Subject: RE: how to submit javascript variable of array type


> Andrew,
>
> I used the exact same approach my in my action class, the array from
request is yielding null...
> Any clues..
> Thanks so much!
>
> Andrew Hill <[EMAIL PROTECTED]> wrote:
> I usually concatenate the array into a single string (using a delimiter
such
> as a comma) and then put this value into a single field. In my actionform
I
> have a getter (under different property name) that returns it as an array
> (using the delimiter to explode the string).
>
> -----Original Message-----
> From: Mu Mike [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 17 March 2004 10:24
> To: [EMAIL PROTECTED]
> Subject: how to submit javascript variable of array type
>
>
> I now have a javascript array var, and I need to submit it by a form to an
> action class, how can I achieve this?
>
> Thanks&Regards
>
> _________________________________________________________________
> Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/
>
>
> ---------------------------------------------------------------------
> 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]
>
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam


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

Reply via email to