<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Include Component in JSP in AEM in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459388#M132384</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;LI-USER uid="17551516"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below doc gives you all the syntax to include tag libraries in JSP.&lt;/P&gt;&lt;P&gt;The Granite, CQ, and Sling tag libraries give you access to specific functions for use in the JSP script of your templates and components.&lt;/P&gt;&lt;P&gt;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/taglib.html?lang=en" target="_blank" rel="noopener"&gt;https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/taglib.html?lang=en&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&amp;lt;cq:include&amp;gt;&lt;/H3&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;cq:include&amp;gt;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;tag includes a resource on the current page. I think that would suffice your content fragment use case too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 13:03:56 GMT</pubDate>
    <dc:creator>Pallavi_Shukla_</dc:creator>
    <dc:date>2022-07-04T13:03:56Z</dc:date>
    <item>
      <title>Include Component in JSP in AEM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459359#M132374</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one simple component called testcomponent under apps/test/components/testcomponent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to include content fragment component inside the testcomponent.jsp..How can I include my content fragment component in my JSP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Haritha&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 11:41:46 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459359#M132374</guid>
      <dc:creator>haritha6</dc:creator>
      <dc:date>2022-07-04T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Include Component in JSP in AEM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459369#M132378</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17551516"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;cq:include&lt;/STRONG&gt; to include a resource/component into your jsp as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;cq:include&lt;/SPAN&gt; &lt;SPAN class=""&gt;path=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"test"&lt;/SPAN&gt; &lt;SPAN class=""&gt;resourceType=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"my-site/components/test-component"&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jul 2022 12:22:40 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459369#M132378</guid>
      <dc:creator>sravs</dc:creator>
      <dc:date>2022-07-04T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Include Component in JSP in AEM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459379#M132382</link>
      <description>&lt;P&gt;First of all I would suggest you to please use HTL instead of JSP.&lt;/P&gt;&lt;P&gt;Answering your question : You can include HTML file in your JSP (&amp;lt;cq:include script="include.html"/&amp;gt; ) and write all code using sightly. You can use cq:template to include CF component inside your component. It will add node when you add component in Page. In HTL, you can use data-sly-resource for CF component.&lt;BR /&gt;Refer We-Retail Code :&amp;nbsp;/apps/weretail/components/structure/footer/cq:template &amp;amp;&amp;nbsp;/apps/weretail/components/structure/footer/footer.html&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 12:51:18 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459379#M132382</guid>
      <dc:creator>sachinarora</dc:creator>
      <dc:date>2022-07-04T12:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Include Component in JSP in AEM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459388#M132384</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;LI-USER uid="17551516"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below doc gives you all the syntax to include tag libraries in JSP.&lt;/P&gt;&lt;P&gt;The Granite, CQ, and Sling tag libraries give you access to specific functions for use in the JSP script of your templates and components.&lt;/P&gt;&lt;P&gt;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/taglib.html?lang=en" target="_blank" rel="noopener"&gt;https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/taglib.html?lang=en&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&amp;lt;cq:include&amp;gt;&lt;/H3&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;cq:include&amp;gt;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;tag includes a resource on the current page. I think that would suffice your content fragment use case too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:03:56 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459388#M132384</guid>
      <dc:creator>Pallavi_Shukla_</dc:creator>
      <dc:date>2022-07-04T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Include Component in JSP in AEM</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459454#M132406</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17551516"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;It seems like you are trying to implement Content Fragment into your component.&lt;/P&gt;&lt;P&gt;for that, try to implement Content Fragment component from core components into your project by&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sling:resourceSuperType = /core/wcm/components/contentfragment/v1/contentfragment.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;change jsp to HTML &amp;amp; write your custom HTL as required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp; if your requirement is to include a Content Fragment into your existing&amp;nbsp;jsp component, then use&amp;nbsp;&amp;lt;cq:include&amp;gt;&amp;nbsp; as others said.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;~Aditya.Ch&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 05:59:57 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/include-component-in-jsp-in-aem/m-p/459454#M132406</guid>
      <dc:creator>Aditya_Chabuku</dc:creator>
      <dc:date>2022-07-05T05:59:57Z</dc:date>
    </item>
  </channel>
</rss>

