Regarding this topic. I need a way to be able to externally call a controller so that my error page gets decorated by Sitemesh. Currently, using <error-page> tag in web.xml to trap the 403 returns the error page undecorated. So since that seems to be a Sitemesh bug, I tried this way to subclass the SecurityEnforcementFilter's sendAccessDeniedError method with the following code in it, but I still get the error page undecorated. Is there any way around this?
Code:
protected void sendAccessDeniedError(ServletRequest request, ServletResponse response) throws IOException {
try {
request.getRequestDispatcher("/browse/error.htm").forward(request, response);
} catch (ServletException se) {}
}