diff --git a/src/main/java/cokr/xit/foundation/web/ExceptionController.java b/src/main/java/cokr/xit/foundation/web/ExceptionController.java index def21a2..1d6a20c 100644 --- a/src/main/java/cokr/xit/foundation/web/ExceptionController.java +++ b/src/main/java/cokr/xit/foundation/web/ExceptionController.java @@ -32,7 +32,7 @@ public class ExceptionController extends AbstractController { Object disp = hreq.getRequestDispatcher("error/errorPage"); String viewName = disp != null ? "error/errorPage" : "jsonView" ; return new ModelAndView(viewName) - .addObject("json", ajaxRequest() || jsonResponse()) + .addObject("json", "jsonView".equals(viewName) || ajaxRequest() || jsonResponse()) .addObject("path", getAction(hreq)) .addObject("failed", true) .addObject("status", status)