[stringtemplate-interest] Conditional iterations

Ivan Gallo ivgallo at gmail.com
Sun Oct 24 09:31:35 PDT 2010


Thank you for your prompt reply, but I'm new and did not understand what I
have to do, there is an example easier to implement

2010/10/24 Ivan Gallo <ivgallo at gmail.com>

> 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
>



-- 
Ivan Gallo P
SCJP
cel 3008165846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20101024/664146fc/attachment.html 


More information about the stringtemplate-interest mailing list