Yann C�bron wrote:

How do i do the following portName.length() inside test :
<c:set var="portName" value="TEST" />
<c:if test="${ portName.length() > 15}">  <================

</c:if>


If you can use JSTL1.1, you can use the fn: Function-Library
to query the length of properties

http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html


Hi Yann,
can you give a quick example of the use of this function library, and
perhaps the taglib declaration.

I couldn't find anything in the spec.



Here's a good summary of the fn: library including an example using fn:length:

http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSTL8.html#wp84680



To avoid confusion, it is worth nothing that these functions are part of the expression language in JSP 2.0 and JSTL 1.1 (both included in JWSDP 1.3), but not JSTL 1.0.

HTH,
   Yann




Craig




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to