Hi all, How can I test the class of a given object in a velocity template. I can't find an instanceof directive
Thkx a lot, It's for urgent need Mira
Hi all, How can I test the class of a given object in a velocity template. I can't find an instanceof directive
Thkx a lot, It's for urgent need Mira
There is no instanceof, but you can get class name as a string and then go from there:
${myObj.class.name} would return "com.test.MyObj"
${myObj.class.simpleName} would return "MyObj"