<s:iterator value="test_list" status="status"> <s:checkbox name="test_string_%{#status.index}" value="true"> </s:iterator>
Thanks, Nuwan C KE LI wrote:
Dear All, I am confusing about how to write dynamic s:checkbox names in s2. For example, <s:iterator value="test_list" status="status"> <s:checkbox name="test_string_?" value="true"> </s:iterator> I want to achieve the result as: <s:checkbox name="test_string_0" value="true"> <s:checkbox name="test_string_1" value="true"> <s:checkbox name="test_string_2" value="true"> <s:checkbox name="test_string_3" value="true"> <s:checkbox name="test_string_4" value="true"> etc. The main problem is that i dont know how to write the right ognl expression in the code above(around the "?" position). Can anyone help me? Thanks in advance.
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org