Hi list. I have a JSP file which uses <c:when> and <c:if> to compare numbers. for example, I have a case where a value may contain either null or the empty string - so I test like this:
<c:if test="${empty bean.value or fn:length(bean.value) < 1}"> This is because, contrary to "path of least surprise", empty treats empty strings as not-empty (well, they do contain a reference to a string object). My problem is that I'm now converting said page to JSPX (which is completely XML) and Tomcat correctly complains that "The value of attribute "test" associated with an element type "c:if" must not contain the '<' character.". I tried to put < instead of < , which works but eclipse's WTP complains that it can't parse the instruction. I also think its ugly. Barring fixing "empty" to work correctly - is there a better way to check on string length, or generally to compare numbers, using EL in JSPX ? -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9611212 (204) +972-54-7340014 ::.. "It's bad enough being miserable, but it's even worse when everyone else claims to be miserable too." -- Eeyore --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]