"nathan phillips" <[EMAIL PROTECTED]> wrote on 18/03/2003 04:01:14 AM:

> Hello Jelly users,
> 
> I'm hoping someone would be so kind as to answer a few questions I have 
in 
> regards to Jelly.  I'm using commons-jelly-1.0-beta-3.
> 
> 1)  In the example below I'm having trouble getting the formatDate tag 
to 
> work.  When my script runs the ${date} value gets set but the tag does 
not 
> get executed.
I thought formatDate was post 1.0-beta4?

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

It's XML....& is a special character. Try using 'and'.

> <?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.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to