[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    RE: #$ problem
From:       "Geir Magnusson Jr." <gmj () xyris ! com>
Date:       2001-04-25 13:50:39
[Download RAW message or body]

From: Martin Sedlmayr [mailto:Martin.Sedlmayr@faw.uni-ulm.de]
>
> Does anyone have a hint ? I am using velocity-1.0b2-dev.jar from the
> Turbine kit.
>
> The desired output is:
>
> <a href="#1">
> <a href="#2">
> <a href="#3">
> ...
>
> But the straightforeward approach fails:
>
> <a href="#$velocityCount">
>
> Also all kinds of escaping that I have tried:
> #${velocityCount}
> #{${velocityCount}}
> \#$velocityCount
>
> The only way is to "physically" seperate the # from the $ by another
> letter, a space or so:
>
> #set( $x = "#" )
> #foreach( $p in $entries )
>   <a href="$x${velocityCount}">$p.Name</a>
> #end

Yes. the above is the current workaround.  It's a known bug - a fix is in
progress.

geir

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic