struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puneet Agarwal" <puneett...@rediffmail.com>
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" 
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message