Mantis - Resin
Viewing Issue Advanced Details
5232 major always 10-01-12 21:12 10-25-12 14:36
mattp  
ferg  
normal  
closed 4.0.31  
fixed  
none    
none 4.0.33  
0005232: JSP 2.2 jsp-property-group default-content-type not supported
The XML accepts the configuration
    <jsp-config>
        <jsp-property-group>
            <url-pattern>*.jspx</url-pattern>
            <default-content-type>text/html</default-content-type>
        </jsp-property-group>
    </jsp-config>
but this does not affect the content type of the response.

Per the spec:
JSP.3.3.9 Declaring Default Content Type
The JSP configuration element default-content-type can be used to specify the
default contentType property of a group of JSP pages defined using the jsp-property-group element.
The valid values for the default-content-type element are those of the
contentType attribute of the page directive. It speci&64257;es the default response
contentType if the page directive does not include a contentType attribute.
Add jsp-config to resin-web.xml. Create a simple jspx file and view the output. If the default-content-type were honored, the content would be HTML, not XML.

Notes
(0006076)
ferg   
10-25-12 14:36   
jsp/0715