AEM6 Sightly. Response sendError. | Adobe Higher Education
Skip to main content
Level 4
October 16, 2015
Risolto

AEM6 Sightly. Response sendError.

  • October 16, 2015
  • 1 risposta
  • 640 visualizzazioni

Hello,

Is it possible to execute "response.sendError(404)" inside sightly template?

Or I need to create a jsp and use data-sly-include?

Thanks!

Questo argomento è stato chiuso alle risposte.
Migliore risposta di Feike_Visser1

You can via the data-sly-use. Not directly in the template.

For example, if you extend WCMUse, you can do:

getResponse().sendError(...)

1 risposta

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

You can via the data-sly-use. Not directly in the template.

For example, if you extend WCMUse, you can do:

getResponse().sendError(...)