Risolto
AEM6 Sightly. Response sendError.
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!
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!
You can via the data-sly-use. Not directly in the template.
For example, if you extend WCMUse, you can do:
getResponse().sendError(...)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.