How to calculate list size in velocity template? I am using velocity 1.4.
List<String> list = new ArrayList<String>();
How to calculate list size in velocity template? I am using velocity 1.4.
List<String> list = new ArrayList<String>();
I assume that you mean "how do you call java methods in in the velocity template" because the method you are looking for is on the "List" javadoc, already mentioned.
I believe this article would be helpful:
How to access/get the size of an array/collection in velocity templates?
To save you a read, you should just be able to input this:
${myArrayList.size()}