velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenjian <>
Subject RE: #stop problem, sorry for re-sending
Date Tue, 08 Jun 2004 03:51:39 GMT

Well, I searched on the developer mailing list and found out that this is a 
bug as follows:

24189|New|Enh|2003-10-28|#stop in conditions is not working

So, now the question is, could anyone kindly provide me with some workaround? 
Otherwise, I have to make up 2 templates, one for the error conditions, one 
for the good conditions.



>===== Original Message From "Velocity Users List" 
<> =====
>Hi, All,

>I am not sure if this email goes through, so, trying to do a re-send. Please
>forgive me if you get it twice...
>I am using version 1.4 (the stable release) of velocity. I am trying to put
>#stop in an #if #end structure, so that the page could have some alternative
>#if ($myvariable)
>But I got the following error:
>org.apache.velocity.exception.ParseErrorException: Encountered "" at line 31,
>column 9.
>Interesting thing is that, if I put #stop outside of the #if statement block,
>it works. But that defeats the purpose of having #if block there.
>Could anyone shed some light on this problem?
>Thanks a bunch in advance,
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message