Frequently Asked Questions
Experienced AEM developers who are new to HTL, commonly ask the following questions:
Does HTL have any limitations that JSP doesn’t?
HTL does not have limitations compared to JSP in the sense that what can be done with JSP should also be achievable with HTL. However, HTL is by design stricter than JSP in several aspects. What can be achieved in a single JSP file might need to be separated into a Java class or a JavaScript file to be achievable in HTL. But this approach is generally desired to ensure a good separation of concerns between the logic and the markup.
Does HTL support JSP Tag Libraries?
No. However, as shown in the Loading Client Libraries section of the Getting Started document, the template & call statements offer a similar pattern.
Can the HTL features be extended on an AEM project?
No. HTL has powerful extension mechanisms for reuse of logic (the Use-API) and of markup (the template & call statements), which can be used to modularize the code of projects.
What are the main benefits of HTL over JSP?
Security and project efficiency are the main benefits, which are detailed in the Overview.
Are JavaServer Pages (JSP) going away?
No. There are no plans to discontinue JSP.
What’s in a name?
In AEM 6.0 and 6.1, HTL was called Sightly. Adobe renamed it to HTML Template Language or HTL to clarify what the specification is for and to align with Adobe’s naming guidelines in general. This naming change was effective as of August 2016 and applies to AEM version 6.0 and forward.
To find out more about HTL, see Getting Started with HTML Templating Language (HTL) Guide.