struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lally Singh" <lally.si...@gmail.com>
Subject [S2] Form & OGNL Question
Date Tue, 12 Jun 2007 19:36:39 GMT
This sounds like it should be  FAQ, but how do I bind a dynamically
generated form item?

E.g:
<s:set name="i" value="0" />
<s:iterator value="groups">
  <s:radio name="groups[#i].value" list="{1,2,3,4}" />
  <s:set name="i" value="#i + 1" />
</s:iterator>

This doesn't do what I want, which is to have 1 set of radio buttons
per item in groups, each bound to the value property of element i in
groups.

Thanks in advance for your help,

-ls

-- 
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech

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


Mime
View raw message