Problems with control tag "if"
Lars Weber <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
i am new with struts 2 and freemarker.
i can't find where the error is.
i have got a list and it works
<@s.iterator value="products" var="product">
<@s.property value="%{#product.productData.productName}"/>
</@s.iterator>
but how can i use the if-control tag in the iteration?
doesn't work
<@s.iterator value="products" var="product">
<@s.if test='product.productData.productIsOnline = 1'>
available
</@s.if>
<@s.property value="%{#product.productData.productName}"/>
</@s.iterator>
also works:
<@s.if test='products.size() > 0'>
</@s.if>
i tested the different data types like boolean, string and integer for
product.productData.productIsOnline
thanks for help,
lars
--
View this message in context: http://freemarker.624813.n4.nabble.com/Problems-with-control-tag-if-tp2311498p2311498.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm