context.getOut().setSilent(true, pageContext);
context.doInclude(pageContext, getName());
log.debug("End layout exec in ", context.getDefinitionPage());
}
catch (Exception e) {
throw new StripesJspException(
"An exception was raised while invoking a layout. The layout used was " +
"'" + getName() + "'. The following information was supplied to the render " +
"tag: " + context.toString(), e);
}
// Check that the layout actually got rendered as some containers will
// just quietly ignore includes of non-existent pages!
if (!context.isRendered()) {
throw new StripesJspException(
"Attempt made to render a layout that does not exist. The layout name " +
"provided was '" + getName() + "'. Please check that a JSP/view exists at " +
"that location within your web application."
);
}