What you probably will want to do is use the Struts logic:iterate and bean:write tags to generate the array *within* the JavaScript function.
<script language="JavaScript">
// Create the array for the first set of options
fooArray = new Array();
<logic:iterate id="fooValue" indexId="ctr"
name="MyForm" property="fooList">
fooArray[<bean:write name="ctr"/>] =
new Option("<bean:write name='fooValue'/>",
"<bean:write name='fooValue'/>",
false, false);
</logic:iterate>
...Sathish Babu K R wrote:
hi all
i have a reg in my module that i should pass array from jsp to javascript function.how to do that?thanx in advance
sathish
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

