Ross Bamford wrote:
Hi all,

Does anyone know of a way to do instanceof checks from VTL? At the
moment I'm providing a simple isA method on objects, but I am thinking
there must be another way...

You can use a tool... maybe the tool can take advantage of the velocity internal introspector code.

OTOH, some folks would consider it breaking MVC philosofy to use
such code in templates.

:) Christoph Reck



The isA method works, but (at the moment) only checks the actual classname (not superclasses). Before I go about working this out, I just wondered if I had missed something crucial ... ?

Cheers,
Ross


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



Reply via email to