problem with <c:out> and fn:trim

Hi all

I have a problem using jstl functions

I have a tag file with following code

<%@ taglib uri="/WEB-INF/tlds/c-1_0-rt.tld" prefix="c_rt" %>

<%@ taglib uri="/WEB-INF/tlds/fn.tld" prefix="fn" %>

<%@ attribute name="path" required="true" %>

<%@ attribute name="base" required="false" %>

<c_rt:url value="/${path}" var="realPath" />

<c_rt:out value="${fn:trim(realPath)}" />

when I am using this tag file the output is ${fn.trim(realPath)} with no error or exception, it seems that c:url and c:out dont work !!!

but when I change the tld from c-1_0-rt.tld to c-1_0.tld the c:url and c:out work fine but I can't use fn:trim() because they dont accept expression values

what is wrong with my code?

both tld files are existing under the WEB-INF/tlds directory

in second state the following exception will be thrown:

org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidatorfor c</h3>

8: tag ='out' / attribute ='value': An error occurredwhile parsing custom action attribute"value" with value"${fn:trim(realPath)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.

any help would be appreciated

[1782 byte] By [java1357a] at [2007-11-27 9:18:14]
# 1

You seem to be mixing up the various versions of JSTL.

Functions are only supported in JSTL1.1.

What server are you using?

If it is a JSP2.0 container you should be using JSTL1.1

If it is not, then you can't use the fn libraries.

Check out this post: reply #6

http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0

evnafetsa at 2007-7-12 22:09:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...