0

We are aware the every JSP service file created out of a .jsp file cannot be more than 64KB. So people substitute file include with dynamic file includes such as <jsp:include/> or <cq:include/>

Does HTL have a limit like JSP of 64KB?

Reference link

Oliver
  • 6,152
  • 2
  • 42
  • 75

1 Answers1

0

It's more complicated than that, however yes, HTL template is getting compiled to Java class, and that Java class cannot have more than 64kB size.

For more details about class sizes, see this question.

In my entire career I have never seen a template bigger than 64kB so we had to break it down to smaller parts. In fact, I find HTL and AEM components very useful to break down the complexity.

Dawid Pura
  • 991
  • 9
  • 32
  • In my case its not easy. Every JSP has included a huge custom global.jsp and that too static include. Not just that all JSP variables defined in global.jsp are of page scope so if a page wants to override that it can't as the next JSP will include global.jsp again and reset the values. There has to be an easier solution to this. – Oliver Apr 13 '23 at 19:26
  • But these inclusions are dynamic, or static? In case of HTL, inclusions are always dynamic. – Dawid Pura Apr 15 '23 at 05:19