[stringtemplate-interest] Conditional iterations
Ivan Gallo
ivgallo at gmail.com
Sun Oct 24 09:04:40 PDT 2010
how I can do this in stringtemplate, conditional expression only accepts
boolean values ?
<select id="city" name="city">
<option value=""></option>
<c:forEach var ="row" items="${cities}">
<option value="${row.code}" ${row.code == s.code
?'selected':''}>${row.name}</option>
</c:forEach>
</select>
s.code is a value of javabeans
--
Ivan Gallo P
SCJP
cel 3008165846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20101024/41adf06a/attachment.html
More information about the stringtemplate-interest
mailing list