velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject [tools] Replacement for ListTool?
Date Thu, 26 Jun 2014 19:27:52 GMT

ListTool is marked as deprecated because Velocity 1.6 and later treat
arrays and lists as first-class collections and can perform appropriate
operations on them.

One thing it's not easy to do is determine if an object is an List or an

I have something hacked-together using ClassTool like this:

#if($bundleType &&

[the $bundle object is a List]

But it's kind of verbose, plus I need to check to see if it's an array
as well.

Any suggestions using existing tools?


View raw message