Bug 29680 - str:replace with EL does not work with string 1.1.0
Summary: str:replace with EL does not work with string 1.1.0
Alias: None
Product: Taglibs
Classification: Unclassified
Component: String Taglib (show other bugs)
Version: 1.1.0
Hardware: Sun other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2004-06-18 19:01 UTC by Steve Morrison
Modified: 2009-07-11 02:00 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Steve Morrison 2004-06-18 19:01:11 UTC
The following used to print 2 with string 1.0.1.  Now it prints 1 (nothing is

<c:set var="replaceme" value="1"/>
<str:replace replace="1" with="2"><c:out value="${replaceme}"/></str:replace>

If I replace the EL expression with a literal it works.  EL expressions also
don't work in the replace attribute.
Comment 1 Henri Yandell 2009-07-11 02:00:34 UTC
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.