Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004190 [Resin] major always 08-27-10 03:40 11-17-10 11:42
Reporter olaf2010 View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.10
Summary 0004190: Mixed '#' and '$
Description 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?
Additional Information
Attached Files

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
08-27-10 03:40 olaf2010 New Issue
08-27-10 03:41 olaf2010 Issue Monitored: olaf2010
09-15-10 19:53 reza Severity minor => major
10-13-10 15:36 nfedorov Note Added: 0004792
11-17-10 11:42 ferg Note Added: 0004854
11-17-10 11:42 ferg Assigned To  => ferg
11-17-10 11:42 ferg Status new => closed
11-17-10 11:42 ferg Resolution open => fixed
11-17-10 11:42 ferg Fixed in Version  => 4.0.14


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