Mantis - Resin
Viewing Issue Advanced Details
149 minor always 05-09-05 00:00 05-11-05 00:00
user161  
 
normal  
closed 3.0.12  
3.0.12 fixed  
none    
none 3.0.14  
0000149: Wrong escape-sequence handling in taglib runtime expressions
RSN-143
If Java code is used as runtime value of taglib attributes escaping with backslashes is not treated right. One of the backslashes vanishes...:


  <%-- ...assume a existing bean x... --%>

  <%-- First example: Double backslash treated right --%>
  <% Pattern testPat = Pattern.compile("\\d"); %>
  <jsp:setProperty name='x' property='value' value='<%=testPat%>' />


  <%-- Second example: Double backslash treated wrong. The compiled .java file only contains one backslash --%>
  <jsp:setProperty name='x' property='value' value='<%=Pattern.compile("\\d")%>' />

Windows XP, JDK 5

Notes
(0000181)
ferg   
05-09-05 00:00   
jsp/184s