On Sunday 18 January 2009 00:47:51 Nuwan Chandrasoma wrote: > <s:iterator value="test_list" status="status"> > <s:checkbox name="test_string_%{#status.index}" value="true"> > </s:iterator> > > Thanks, > > Nuwan C >
Nuwan, I'm not sure if that is what he is intending. It will work, but for what seems to be the wrong reasons. If "test_list" contains the values to iterate over, then I would use those, rather than the loop index. <s:iterator value="test_list" status="status"> <s:checkbox name="%{'test_string_' + top}" value="true"> </s:iterator> This is a slightly different variation of the OGNL, as I enclosed the whole expression. Also, "top" will point to the value on the top of the Value Stack, which will contain the value pushed onto it by the s:iterator tag. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org