AEM6 Sightly. Response sendError. | Community
Skip to main content
Level 4
October 16, 2015
Solved

AEM6 Sightly. Response sendError.

  • October 16, 2015
  • 1 reply
  • 640 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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 reply

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
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(...)