Velocity object types
Basic types
String
#set( $str = "abc" )
#set( $r = "xx${str}yy" ) ## r : "xxabcyy"
#set( $r = "xx" + $str + "yy" ) ## r : "xxabcyy"length : $str.length()
#set($str2 = $str.replaceFirst("def", "xy" ) )
#if ( $str.endsWith("ef") ) YES #end
#if ( $str.equalsIgnoreCase("AbC") ) YES #end
toUpperCase() : $str.toUpperCase()
toLowerCase() : $str.toLowerCase()Integer
Double
Boolean
Collections
List
Map
Array
Last updated