Tuesday, 28 April 2020

AEM Generic Utility

In AEM, sometimes needs to write utility to update exising page content.
Utility can be written in multiple ways, here listed for two ways:

1) Utility using JSP (Classic UI)


  • Install the code packge Dowload File
  • Add business logic in POST.jsp
  • Remove POST filter from CSRF Filter OSGI Config
  • Run this utility

Note: Update Buiness logic here to make it work.
On Trigger, it will show report in table and have Print plugin integrated.

2) Utility using Java (Touch UI)
Download File

  • Copy this classicutil page under apps somewhere like /apps/tools.
  • Include the attahed servlet in your bundle
  • Open this utility page

Note: Servelt provided here is just a empty servelt, hence include business logic first, then only it will give success message.

No comments:

Post a Comment