Skip to main content
New Participant
August 11, 2022

Itterate Level1 & 2 in JSP

  • August 11, 2022
  • 1 reply
  • 491 views

Hi all,

I have a requirement that , to show the below level 1 under industry-solution-components folder and level 2 components under l2-layer in AEM page under Industry Tab.

I have a below JSP code and want to replace with the above requirement .

 

<slingx:forEachChildResource var="industriesResource" resourcePath="industriesLinks">
<slingx:property var="industrylabel" name="label" resourcePath="${industriesResource.path}" />
<slingx:property var="industryDestination" name="destination" resourcePath="${industriesResource.path}" />
<div class="top-nav-auth-item-wrapper">
<li><a href="<tef:link path="${empty industryDestination ? # : industryDestination}"/>">
<span>${industrylabel}</span>
</a></li>
</div>
</slingx:forEachChildResource>

 

can anybody help me how to get level 1 and level 2 items in JSP and display in the page?

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
New Participant
August 12, 2022

Why don't you use HTL and Sling Models?

Arun Patidar