commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Sell <christian.s...@netcologne.de>
Subject Re: A little Jelly help please
Date Mon, 17 Mar 2003 17:18:11 GMT
> 2)  Compound AND conditions give me parsing errors although OR 
> conditions don't cause me any problem.  For example, I can't get the 
> commented condition below to execute, anything with ampersands gives 
> parsing errors.

most likely you will have to use XML entity notation for the ampersands:

testObject.value != null &amp;&amp; testObject.value == 'Hello'

thats life in XML.

> 
> 
> <?xml version="1.0"?>
> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:fmt="jelly:fmt" 
> xmlns:x="jelly:xml" xmlns:html="jelly:html">
> 
>    <!-- testObject.value != null && testObject.value == 'Hello'-->
>    <j:if test="${testObject.value == 'Hello'}">
>        Test 1
>    </j:if>
> 
>    <fmt:formatDate value="${date}" pattern="MM/dd/yyyy" />
> 
>    <j:forEach items="${hobbies}" var="i">
>        ${i}
>    </j:forEach>
> 
> </j:jelly>
> 
> Any insight would be greatly appreciated as I would really like to use 
> Jelly in my project.  Thanks for the great work on this project everyone 
> and any help you may be able to give me.
> 
> 
> 
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8. 
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 



Mime
View raw message