struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Gurgone <dav...@gurgone.it>
Subject Re: newbie question on indexed properties
Date Fri, 09 Jul 2004 13:58:45 GMT
Bill Siggelkow wrote:

> You will need to add indexed getters and setters --
> 
> public String getAnswer(int index);
> public String setAnswer(int index, String value);
> 
>   <logic:iterate name="questionForm" property="answers"
>                id="answer" indexId="ctr">
>     <br/><html:text property=’<%="answer["+ctr+"]"%>’/>
>   </logic:iterate>
> 
Better :)
   [CUT]
     <html:text property="answers" indexed="true" />
   [CUT]
it render a property named property[0], property[1], etc



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message