Mantis - Resin
Viewing Issue Advanced Details
4190 major always 08-27-10 03:40 11-17-10 11:42
olaf2010  
ferg  
normal  
closed 4.0.10  
fixed  
none    
none 4.0.14  
0004190: Mixed '#' and '$
I have this little page "bla.jsp"

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" [^] %>
<c:set var="tokens" value="1#2#3#4#5#6"/>
<c:set var="tokens" value="0#${tokens}"/>
<c:forTokens items="${tokens}" delims="#" var="token">
  <c:out value="${token}"/>

</c:forTokens>

This gives me an error:

/bla.jsp:3: Mixed '#' and '$'. Expected `#' at `$' in 0#${tokens}

This time i have made sure, that there is no foreign jstl taglib in the classpath. :-)

Is this a bug? Or on what do you rely on, that this should be an error?

Notes
(0004792)
nfedorov   
10-13-10 15:36   
We are experiencing the same problem. Using '#' and '$' in any dynamic/rtexprvalue attribute causes an exception.

Minimal JSP to reproduce:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" [^] prefix="c" %>
<c:url value="${'PASSED'} #"/>

Expected result:
PASSED #

Result under Resin 4.0.10:

  Cause: /templates/jsp/resin.jsp:2: Mixed '#' and '$'. Expected `$' at `#' in ${'PASSED'} #

1: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" [^] prefix="c" %>
2: <c:url value="${'PASSED'} #"/>
3:
(0004854)
ferg   
11-17-10 11:42   
jsp/1cee