velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <>
Subject Re: EscapeTool (and velocity-tool best practices)
Date Thu, 09 Dec 2004 12:59:35 GMT
Hi Nathan,

> in general, yes.   the type of VTL references is a) not obvious, b)
> mutable, and c) not as important as its string representation (since
> we're working with the ''V" in MVC here).  as such, it's usually a
> good idea to accept Objects and then attempt conversion to the needed
> type.  if the param is null or the conversion can't be made, then it
> is usually considered best to return null rather than throw
> exceptions.

I must say, the MathTool/NumberTool/DateTool does a great job for this!

> these aren't hard and fast rules, but they've worked very well for me.
> and they are what i prefer when it comes to contributions/patches.
> ;-)

I'll remember that.  B)

Best regards,
-- Shinobu Kawai

Shinobu Kawai <>

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

View raw message