You want some sample code, alright here you go:

<html:form name="myForm" action="bla-bla" type="bla-bla">
<logic:iterate name="myProperty" id="id1" indexId="x" type="java.lang.String[]">
<script>
arrayVar[<bean:write name="x" />]=<bean:write name="id1" />
</script>
</logic:iterate>
</html:form>
Regards
Puneet

</html:form>On Mon, 23 Dec 2002 Eric C. Hein wrote :
I have a form "myForm" with a property "myProperty" that is a String array. I want to set a javascript array to the contents of a myProperty. I think I need to use an iterate tag in combination with the <bean:write/> tag but I cannot figure out from the javadocs how to do this.

Can anyone post some sample code?

Thanks



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

Reply via email to