April 10, 2020
Estimated Post Reading Time ~

Overview of Script in AEM

Scripts: 
JSP Scripts or Servlets are usually used to render components.
According to the request processing rules of Sling the name for the default script is <componentname>.jsp.

global.jsp
The JSP script file global.jsp is used to provide quick access to specific objects (i.e. to access content) to any JSP script file used to render a component.

Therefore global.jsp should be included in every component rendering JSP script where one or more of the objects provided in global.jsp are used.

Note: The path /libs/wcm/global.jsp, which was used by earlier versions of CQ, is now obsolete. In CQ 5.3, the correct global.jsp path changed to /libs/foundation/global.jsp

More details: http://dev.day.com/docs/en/cq/current/developing/scripts.print.html


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.