Hi,
I've got a servlet that returns an XML in response. Have control over registering servlet as path or resource based.
Now when I hit a custom URL like "www.sitename.com/abc/releases/result.xml"(not an existing page), the servlet should trigger and dump the XML response.
Approach 1: Use the logic of AEM sitemap.xml and achieve this with custom etc resource mapping and URL rewrite.
Any other best approaches?
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
@VinayHegde It depends on the complexity of the business logic and frequency of date to be updated in that xml.
@VinayHegde It depends on the complexity of the business logic and frequency of date to be updated in that xml.
Agree with @Shashi_Mulugu .
If the XML is dynamic then you can follow the below steps to creating a custom servlet:
Create a custom servlet registered by resource type (recommended): https://aem.redquark.org/2019/07/sling-servlet-04-registration-via.html
For more understanding of how servlet by resource type works: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-configure-a-servlet...