velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Tinnemeyer" <marc-...@gmx.net>
Subject Re: Escaping EL in JSTL
Date Wed, 13 May 2009 17:41:20 GMT
Ups

the code was:

<c:if test="${ foo != null }">
   ...
</c:if>


On May 13, 2009, at 7:31 PM, M. Tinnemeyer wrote:

> Good evening,
>
> I use Velocity to generate several Jsp pages. This works quite well  
> as long as I do not use EL expressions like:
>
> <c:forEach items="${foo != null}" var="bar">
> ...
> </c:forEach>
>
> I tried to escape the $ sign by using a backslash or but then  
> Velocity stumbles upon "!=".
> #set( $D = '$' ) like stated in the user-guide did not improve the  
> situation.
>
> Does anybody have a clue on this ?
>
> Maybe there is a way to exclude a whole line from being parsed by  
> Velocity ?
>
> Kind regards
> Marc Tinnemeyer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message