Hi,I am using the below code to print list children items on page, but it's not working. Can anyone please suggest how to achieve this?
One way to do it is to use a bundled Java Class where you can put your logic and then return the result you want into your componentName.html. Here is an example from https://docs.adobe.com/docs/en/htl/docs/use-api/java.html
Code samples are intended for illustration purposes only.
and, the data-sly-use statement must reference the fully qualified class name, as opposed to just the local class name: