Make sure you're using JSTL 1.1.

<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>

Functions are really part of the EL, so use them within an EL expression:

${fn:trim(row.user_id)}

Quoting [EMAIL PROTECTED]:

> I am using Tomcat 5.X.  I'm not sure which version of JSTL I have, but here
> is my jsp reference:
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
>  
> I wanted to trim a variable I get from a database.  I've searched the Sun
> website and have found the function library.
> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>
>  
> I'm having trouble using this.  
>  
> Here is the tag:
> <fn:trim(row.user_id)/>
>  
> Here is the error:
> No tag "trim(row.user_id)" defined in tag library imported with prefix "fn"
>  
> I'm not sure if it is a version thing or what.  Do I need to make a tld file
> for this?  I can't find this library on the Jakarta web site.  Should I just
> use Jakarta's String library?

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to