Is it possible to sling.include another page in a JSP?
I am making a custom set of error jsp's and I want to include the html
representation a content page in the 404 response (rather than 302 to the page).
I've played around with sling.include passing the Page resource, the Page's
PageContent resource, explicit string paths to the page (including .html ext),
etc. but nothing the actual page itself is never shown.
Also, to note, sling.include("/content/site/errors/404") keeps the 404, whereas
sling.include("/content/site/errors/404.html") magically turns the response
into a 200 (even though the contents of the page is not rendered).
I've also tried getting the RequestDispatcher manually and loading it up
accordingly and still nothing.
performing a sling.forward or dispatcher.forward which when given the explicit
page URI (/content/site/errors/404.html), displays the correct page, but turns
the response into a 200 (which i certainly don't want).
Thoughts?
--
David Gonzalez
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)