Custom Error Page Not Decorated by Sitemesh in Spring Security Application
问题 In a Spring MVC (3.2.4) application with Spring Security (3.2.0.RC2) with Sitemesh (2.4.2), the web.xml file has this entry: <error-page> <error-code>403</error-code> <location>/error?code=403</location> </error-page> which maps to ErrorController: @RequestMapping("error") public String displayErrorPage( @RequestParam(value = "code", defaultValue = "0") int code, Model model, final HttpServletRequest request, Principal principal) { // ... return "errorPage"; } which displays errorPage.jsp via