When fulfilling GET requests with a JSP view, you'd expect to be able to use JSP features like <%@page contentType="text/html; charset=UTF-8" %> or setting headers like 'Expires'. Unfortunately though, JspViewResolver chose to invoke RequestDispatcher.include, where
"The included servlet cannot change the response status code or set headers; any attempt to make a change is ignored."
Is there any reason for not using RequestDispatcher.forward ?
When fulfilling GET requests with a JSP view, you'd expect to be able to use JSP features like
<%@page contentType="text/html; charset=UTF-8" %>or setting headers like 'Expires'. Unfortunately though,JspViewResolverchose to invokeRequestDispatcher.include, where"The included servlet cannot change the response status code or set headers; any attempt to make a change is ignored."
Is there any reason for not using
RequestDispatcher.forward?