"Eigen Technology Pty Ltd" <[EMAIL PROTECTED]> writes:

>Alright guys, I may not sound very intelligent on this matter, but I am
>really frustrated with the outcome given by Velocity.  I changed A and C
>to VARCHAR and it worked!!

Yep. That's an ongoing source of frustration for Velocity newcomers and
seasoned users. Geir wants it that way and there is no way around it.

You might even check if it really checks the value against 3 (value
three) or "3" (string containing '3' char).

>But I am not really satisfied with this outcome, there must be a logical
>explanation to this, why INT works for some but not others?

Uh, there is a _longish_ thread about this in the velocity-dev
archives. I even had some patches for Velocity 1.1 at some point to
fix this behaviour which Geir didn't want.

Conclusion was "Velocity is a templating language, not a programming
language. If you do business logic in it, you're doing something
wrong". No, that's not _my_ opinion.

        Regards
                Henning
-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

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

Reply via email to