Bug 39964 - overlay dosn't support EL attributes in "with" attribute
Summary: overlay dosn't support EL attributes in "with" attribute
Alias: None
Product: Taglibs
Classification: Unclassified
Component: String Taglib (show other bugs)
Version: 1.1.0
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2006-07-05 11:05 UTC by Martin Bednar
Modified: 2009-07-11 01:59 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bednar 2006-07-05 11:05:56 UTC
<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.