<?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: Need a way to pass request parameters to dynamically included component in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419208#M119262</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;request.getParameter('keyword')&amp;nbsp;execute only in AEM server, so in order to use this logic, your page/part of page should not be cached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ideally this kind of functioanlity with caching is handled from front end where you read query param and fetch dynamic content using ajax.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Aug 2021 11:38:12 GMT</pubDate>
    <dc:creator>arunpatidar</dc:creator>
    <dc:date>2021-08-15T11:38:12Z</dc:date>
    <item>
      <title>Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419207#M119261</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a use case , where I want to cache the page at dispatcher but I want to dynamically include a particular component, while being able to access the request parameter present in the URL.&amp;nbsp;&lt;BR /&gt;e.g.&amp;nbsp;&lt;BR /&gt;&lt;A href="http://www.website-url.com?keyword=test" target="_blank"&gt;www.website-url.com?keyword=test&lt;/A&gt;&lt;BR /&gt;I want the page to be served from dispatcher cache, but I need to access keyword - test in the component model, so that I can do some processing and return the result.&amp;nbsp;&lt;BR /&gt;I am using the dynamic include bundle for getting component dynamically&lt;BR /&gt;Without caching the page, I can access using request.getParameter('keyword') in component model, but when I cache the page and load component dynamically (using dynamic-include) , then request parameter is not accessible as dispatcher is not passing it. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 10:30:54 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419207#M119261</guid>
      <dc:creator>sarthakuiit</dc:creator>
      <dc:date>2021-08-15T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419208#M119262</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;request.getParameter('keyword')&amp;nbsp;execute only in AEM server, so in order to use this logic, your page/part of page should not be cached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ideally this kind of functioanlity with caching is handled from front end where you read query param and fetch dynamic content using ajax.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 11:38:12 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419208#M119262</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2021-08-15T11:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419223#M119268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17469715"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp; mentioned you can use front end logic to read query parameters or you can write apache rewrite to achieve this but I wont recommend this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think you can also use selectors instead of query parameters to fulfill your requirements, and this will be cached also.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dipti&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 05:05:13 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419223#M119268</guid>
      <dc:creator>Dipti_Chauhan</dc:creator>
      <dc:date>2021-08-16T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419229#M119273</link>
      <description>&lt;P&gt;Hi Arun,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. Actually our current implementation is based on dynamic include and we are hoping that if we are able to pass query parameters (to the server) while loading the non-cached component, then, our problem would be solved.&amp;nbsp;&lt;BR /&gt;I agree, we can solve it (or any such use-case via ajax) , but isn't the dynamic include trying to solve the same use-case?&lt;BR /&gt;So just wanted to know, is there any specific reason for why apache dispatcher module doesn't send the request parameters along with dynamic include request? It looks like a natural extension to the dynamic include feature , in my opinion.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 06:59:59 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419229#M119273</guid>
      <dc:creator>sarthakuiit</dc:creator>
      <dc:date>2021-08-16T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419230#M119274</link>
      <description>&lt;P&gt;Hi Dipti,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. We came across the option for using selectors while searching, but the problem is that, it is a search page and there will be a lot of cached pages for all the search terms (in thousands). That's why we didn't go that route.&amp;nbsp;&lt;BR /&gt;I was just curious to know, if it is possible to pass the request params , when dispatcher fires request to server to load the non-cached component. Also, I was wondering, why this option is not implicitly present.&lt;BR /&gt;What exactly is apache rewrite option? - Do you mean converting request params to sling selector in apache server ?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 07:12:19 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419230#M119274</guid>
      <dc:creator>sarthakuiit</dc:creator>
      <dc:date>2021-08-16T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419253#M119283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17469715"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using the Sling Dynamic Include to achieve the dynamic inclusion of component then you should be able to read the paramater as well. SDI config provides the parameter (&lt;STRONG&gt;Ignore URL params&lt;/STRONG&gt;) where&amp;nbsp;&lt;SPAN&gt;SDI normally skips requests containing any GET parameters. This option allows to set a list of parameters that should be ignored. So if you want to pass any specific parameter that should be passed from dispatcher to your publish instance, you can define here and using the requestParameter it should be accessible.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;include-filter.config.ignoreUrlParams="[]"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-sling-dynamic-include.html?lang=en" target="_blank" rel="noopener"&gt;https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-sling-dynamic-include.html?lang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 09:31:37 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419253#M119283</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2021-08-16T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419289#M119302</link>
      <description>&lt;P&gt;ok, to make it concrete:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your page is &lt;A href="https://mysite.com/page.html" target="_blank"&gt;https://mysite.com/page.html&lt;/A&gt;&amp;nbsp;, and you use SDI (using SSI) to load some dynamic parts of it. The request from Dispatcher to AEM is &lt;A href="https://mysite.com/page.dynamic.html" target="_blank"&gt;https://mysite.com/page.dynamic.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case you need to get the parameter from&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mysite.com/page.html?keyword=test" target="_blank"&gt;https://mysite.com/page.html?keyword=test&lt;/A&gt;&amp;nbsp;to &lt;A href="https://mysite.com/page.dynamic.html?keyword=test" target="_blank"&gt;https://mysite.com/page.dynamic.html?keyword=test&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a matter of SSI, that this sub-request is created with all parameters which are provided to the initial request. Not sure if that's possible just with the SSI subsystem of Apache httpd (I am not really familiar with it). Maybe you can ask on the Sling User list for some ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 15:01:02 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419289#M119302</guid>
      <dc:creator>Jörg_Hoh</dc:creator>
      <dc:date>2021-08-16T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419317#M119315</link>
      <description>&lt;P&gt;* Disclaimer - I and&amp;nbsp;&lt;LI-USER uid="17469715"&gt;&lt;/LI-USER&gt;&amp;nbsp;are in the same team *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;LI-USER uid="1439549"&gt;&lt;/LI-USER&gt;&amp;nbsp;for your response, you got it right. We want sub-requests to have all the request parameters as in the original request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is the responsibility of Apache (AEM Dispatcher) module to pass on all request parameters to dynamic request but unfortunately it doesn't do that. I am not sure who owns dispatcher module (I guess Adobe) but it looks like it is not open source so we can't think about extending it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any forum (may be mailing list) where we can request this feature or have a discussion around it? It might be useful for anyone using SSI as they don't have to use ajax just to support this basic use case. I would also be interested in knowing if there is a good reason behind not supporting the request parameters as I might be missing something important here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 19:31:58 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419317#M119315</guid>
      <dc:creator>vinay4606</dc:creator>
      <dc:date>2021-08-16T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419321#M119316</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;LI-USER uid="7532759"&gt;&lt;/LI-USER&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on our tests, we are able to read the request params in AEM only if the whole page is being served by AEM. If we have a dynamic include component and we allow page to be cached in dispatcher, then whenever Dispatcher makes SSI (dynamic request) to AEM it is not sending the request params which were part of the original request. This looks like Dispatcher related issue/feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how can we achieve it using the sling dynamic include config as you mentioned:-&lt;/P&gt;&lt;PRE&gt;include-filter.config.ignoreUrlParams="[]"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;According to my understanding, it is responsible for writing either SSI or actual component's markup based on where URL is having any params which is part of ignoreUrlParams or not. It can change what we are sending from AEM to Dispatcher (which gets cached) but not what dispatcher should sent to AEM dynamically.&lt;/P&gt;&lt;P&gt;Please correct me if my understanding is wrong.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 19:48:51 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419321#M119316</guid>
      <dc:creator>vinay4606</dc:creator>
      <dc:date>2021-08-16T19:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419328#M119319</link>
      <description>&lt;P&gt;Actually the SSI handling happens before the AEM dispatcher, so if the SSI starts a new sub-request to the same hostname as the initial request, it will eventually end up at the dispatcher. The documentation at [1] provides details how you need to configure your Apache httpd to make it work.&lt;/P&gt;&lt;P&gt;The difference to the "standard" combination of SDI and SSI is just that you need to change the SSI statements to fine-tune the URL for the dynamic component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://sling.apache.org/documentation/bundles/dynamic-includes.html#enabling-ssi-in-apache-with-the-aem-dispatcher-module-1" target="_blank"&gt;https://sling.apache.org/documentation/bundles/dynamic-includes.html#enabling-ssi-in-apache-with-the-aem-dispatcher-module-1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 20:23:28 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419328#M119319</guid>
      <dc:creator>Jörg_Hoh</dc:creator>
      <dc:date>2021-08-16T20:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419574#M119389</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 08:56:48 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419574#M119389</guid>
      <dc:creator>sarthakuiit</dc:creator>
      <dc:date>2021-08-18T08:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419575#M119390</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://experienceleaguecommunities.adobe.com/t5/user/viewprofilepage/user-id/1439549" target="_self"&gt;&lt;SPAN class=""&gt;Jörg&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. Your inputs were really helpful.&amp;nbsp;&lt;BR /&gt;Sharing the specifics for others' benefit.&lt;BR /&gt;We could figure out the solution for our problem in the&amp;nbsp;&lt;A href="https://httpd.apache.org/docs/current/mod/mod_include.html" target="_self" rel="nofollow noopener noreferrer"&gt;documentation of mod_include&lt;/A&gt;.&lt;BR /&gt;There is a variable named - QUERY_STRING , which provides the request parameter query string.&lt;BR /&gt;As we have customized the code for dynamic include already, we modified the URL of component in virtual include section like -&amp;nbsp;&lt;BR /&gt;&amp;lt;!--#include virtual="page_path/_jcr_content/component_path.nocache.html?$QUERY_STRING" --&amp;gt;&lt;BR /&gt;for the first request which comes to the server.&lt;BR /&gt;&lt;BR /&gt;For subsequent requests , when the dispatcher sends the SSI request to AEM publish instance, it sends the request parameter information as well, which we could read and solve our problem.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you once again!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 08:57:56 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419575#M119390</guid>
      <dc:creator>sarthakuiit</dc:creator>
      <dc:date>2021-08-18T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need a way to pass request parameters to dynamically included component</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419578#M119392</link>
      <description>&lt;P&gt;Thanks for sharing the solution!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 09:19:53 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-a-way-to-pass-request-parameters-to-dynamically-included/m-p/419578#M119392</guid>
      <dc:creator>Jörg_Hoh</dc:creator>
      <dc:date>2021-08-18T09:19:53Z</dc:date>
    </item>
  </channel>
</rss>

