Mantis - Resin
Viewing Issue Advanced Details
30 minor always 03-11-05 00:00 05-11-05 00:00
bearbibeault  
 
normal  
closed  
unable to reproduce  
none    
none 3.0.13  
0000030: Translation error when single quotes used in <jsp:include> action
RSN-21
The following simplified JSP fails to translate:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" [^] %>

<%
  request.setAttribute( "xyz", "r2.jsp" );
  request.setAttribute( "ok", Boolean.TRUE );
%>

<html>
  <body>
  
    <h1>Resin include test</h1>
    
    <c:if test="${ok}">
      <jsp:include page='<%= request.getAttribute( "xyz" ).toString() %>'/>
    </c:if>
  
  </body>
</html>

with error

500 Servlet Exception

/r.jsp:1: com.caucho.xml.XmlParseException: stream:14: attribute `xyz'
expects value at `"'. XML requires attributes to have explicit values.

Resin-3.0.12 (built Wed, 23 Feb 2005 10:29:38 PST)

The strange part is, I tried it not nested in the <c:if> and it failed once, but then worked on subsequent hits.

With the <c:if> added (which more closely mimics the page where I originally observed the problem), I cannot get it to work after repreated hits.
Resin 3.0.12, JDK 1.4.2, Win2K

Notes
(0000034)
ferg   
03-11-05 00:00   
jsp/15l4, jsp15l5 Checked this with the 3.0.13 snapshot and it works fine.

If there's still an issue, perhaps posting the full example to reproduce it as a .war file would help.
(0000035)
ferg   
03-11-05 00:00   
Wrong final state.