I've stumbled upon a documented bug in the JSTL functions endswith function.
http://www.mail-archive.com/taglibs-.../msg03618.html
${fn:endsWith('paymentMethod.billingAddress.', '.')}
returns false. From discussions I have seen it occurs when the search string occurs more than once. I gather that it was coded with indexOf() and if that returns something other than the last index, it returns false.
One of the posters mentions a workaround from Jochen Metzinger, which says cryptically, "Use String#endsWith".
Does anyone know what this means? Does this refer to another taglib?


Reply With Quote
