Mantis Bugtracker
  

Viewing Issue Simple Details [ Jump to Notes ] [ View Advanced ] [ Issue History ] [ Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000030 [Resin] minor always 03-11-05 00:00 05-11-05 00:00
Reporter bearbibeault View Status public  
Assigned To
Priority normal Resolution unable to reproduce  
Status closed   Product Version
Summary 0000030: Translation error when single quotes used in <jsp:include> action
Description 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.
Additional Information Resin 3.0.12, JDK 1.4.2, Win2K
Attached Files

- Relationships

- 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.
 

- Issue History
Date Modified Username Field Change
03-11-05 00:00 bearbibeault New Issue
11-30-05 00:00 administrator Fixed in Version  => 3.0.13


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker