On Aug 11, 2005, at 8:28 AM, Albrecht Leiprecht wrote:
<td>
<%=errmsg.toString().length()%>
<%--correctly prints the expected value--%>
<c:choose>
<c:when test="${errmsg.toString().length() > 0}">
Can you do toString() in EL? I thought you could only access bean
properties. If so, you'd need to provide a getLength() method on your
errormsg bean and do this
<c:when test="${errmsg.length > 0}">
Greg
<font color="#FF0000">
<tiles:getAsString name="FieldError"/>
</font>
</c:when>
<c:otherwise>
<img src="/img/blank.gif" height="1" width="111">
<%--unexpectedly always shows this--%>
</c:otherwise>
</c:choose>
</td>
Substitutes using logic:greaterThat are showing the same strange
behavior...
Any Idea why this happens ? Any Tutorials, I could look up ?
TIA,
albi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]