Bug 39964

Summary: overlay dosn't support EL attributes in "with" attribute
Product: Taglibs Reporter: Martin Bednar <bednar>
Component: String TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P2    
Version: 1.1.0   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Martin Bednar 2006-07-05 11:05:56 UTC
Sample:
<c:set var="code">sample code</c:set>
<str:overlay start="10" end="10" with="${code}">12345678901234567890</str:overlay>

Return: 1234567890${code}1234567890
Must return: 1234567890sample code1234567890
Comment 1 Henri Yandell 2009-07-11 01:46:27 UTC
Confirmed in latest.
Comment 2 Henri Yandell 2009-07-11 01:47:29 UTC
Although in the latest the value is 12345678901234567890. Might be a Cactus side effect.
Comment 3 Henri Yandell 2009-07-11 01:59:28 UTC
Cancel that. I didn't have the JSTL c: taglib imported.

This is working fine in the latest Tomcat (6) with the latest String taglib. That will be because later versions of the JSP spec (2.0+ I believe) take care of the EL execution. This was definitely a problem before 2.0 and not worth the effort to try and fix as it was JSTL implementation dependent iirc.