I tried to fix problem by including the following code in ViewRendererServlet
Code:
...
if (view instanceof AbstractView) {
response.setContentType(((AbstractView) view).getContentType());
}
view.render(model, request, response);
...
however I saw comment in InternalResourceView that
// Note: The JSP is supposed to determine the content type itself.
Is that in JSP spec?
And if so does that mean thet Sun One Portal is performing incorrectly?
the request passed into ViewRendererServlet is com.sun.portal.portlet.impl.RDResponseWrapper and a set content on it has no effect on wrapped response so that's why my solution did not work.
What's the recommended approach or work-around here?