struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puneet Agarwal" <>
Subject Re: Iterate Tag Implementation
Date Mon, 23 Dec 2002 10:53:54 GMT
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" 
arrayVar[<bean:write name="x" />]=<bean:write name="id1" />

</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?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message