Thanks for the pointer to my slides from ApacheCon ("Hacking Velocity").
For the record there are slides and sample code available on these topics:
--> VelocityViewServlet --> Custom directives --> Custom resource loaders --> Event handlers --> Custom introspector --> Modifying Velocity syntax with JavaCC
I've put the material on the Wiki for more general availability. Hope this is useful to other users. http://wiki.apache.org/jakarta-velocity/HackingVelocity
Best, WILL
----- Original Message ----- From: "Shinobu Kawai" <[EMAIL PROTECTED]>
To: "Velocity Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 06, 2004 2:12 PM
Subject: Re: [FAQ] How do you check for null?
Hi Henning,
With the slides from Will's talk @ ApacheCon, you should be able to add a new statement to the VTL so you can do
#ifnull($car.fuel)
Hey, thanks for the idea! Approach #6 : use a custom directive. :) I'll look into that.
Best regards, -- Shinobu Kawai
-- Shinobu Kawai <[EMAIL PROTECTED]>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]