Mantis - Resin
Viewing Issue Advanced Details
889 tweak always 01-20-06 03:17 04-07-06 13:18
anonymous  
ferg  
normal  
closed 3.0.17  
fixed  
none    
none 3.0.19  
0000889: Resin JSTL /Xalan / Xerces
Example JSP code
Use of xerces w/ resin fast-jstl results in erronous output; x:out prints nothing.
[code]
<%-- -------------------------- [ index.jsp ]------------ --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
<%@ taglib uri="http://java.sun.com/jstl/xml" [^] prefix="x" %>
<x:parse var="doc" scope="request">
    <favorites>
        <link name="Site 1" site="http://www.example.com/site1" [^] />
        <link name="Site 2" site="http://www.example.com/site2" [^] />
    </favorites>
</x:parse>

<html>
<head>
    <title>Test Application</title>
</head>
<body>
    <ol type="1">
        <x:forEach var="element" select="$doc/favorites/link">
            

  •                 <a href="<x:out select="$element/@url" />>
                        <x:out select="string($element/@name)" />
                    </a>
                

  •         </x:forEach>
        
    </body>
    </html>
    <%-- -------------------------- [ end index.jsp ]------------ --%>
    [/code]
    Disabling fast-jstl, by creating the resin-web.xml -file in the web-application's WEB-INF folder, with the following content fixes the problem;

    [code]
    <!-- WEB-INF/resin-web.xml -->
    <web-app id="/testapp">
      <jsp fast-jstl="false"/>
    </web-app>
    [/code]

    Notes
    (0000748)
    anonymous   
    01-20-06 03:23   
    note: in the code above, the &lt;li&gt; and &lt;/li&gt; tags were not properly converted to entities by the bug reporting tool.
    (0001053)
    ferg   
    04-07-06 13:18   
    jsp/1g6d