On Nov 24, 2003, at 10:49 AM, Peter Lammich wrote:


I have encountered the following problem (bug in velocity?)

I have a vector of string objects $vector and a object with a toString() method v in my context.
I do the query
#if ($vector.contains($v.toString()))


This works as long as $v.toString() contains no newline. When $v.toString contains a newline,
the query fails, regardless of the contents of $vector.
I've checked the vector to contain exactly the same string (including the newlines)
$vector.contains("$v") also does not work.


Any ideas ... ?

Can you post an example?





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


--
Geir Magnusson Jr                                   203-247-1713(m)
[EMAIL PROTECTED]


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



Reply via email to