Mantis - Resin
Viewing Issue Advanced Details
298 minor always 07-07-05 00:00 11-30-05 14:43
user273  
 
urgent  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.15  
0000298: Resin doesn't deal with <jsp:directive.include under jspx file
RSN-337
I have following code:
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [^] http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> [^]
    <welcome-file-list>
        <welcome-file>
            test.jspx
        </welcome-file>
    </welcome-file-list>

    <jsp-config>
        <jsp-property-group>
            <url-pattern>*.jspx</url-pattern>
            <is-xml>true</is-xml>
        </jsp-property-group>
    </jsp-config>

</web-app>
**********************************************
test.jspx:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" [^] version="2.0">
    <jsp:output omit-xml-declaration="false"/>
<test>
    <jsp:directive.include file="/testFragment.jspf" />
</test>
</jsp:root>
*********************************************
testFragment.jspf:
<doc>Ok</doc>




Result:
<?xml version="1.0" encoding="UTF-8"?>
<test></test>

Expected:
<?xml version="1.0" encoding="UTF-8"?>
<test><doc>Ok</doc></test>
Java Version 1.4.2_08

Notes
(0000336)
ferg   
07-07-05 00:00   
jsp/0310
(0000337)
user273   
07-07-05 00:00   
Thanks a lot