Make sure you're also using a Servlet 2.4 web.xml:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
         version="2.4">
  ...
</web-app>

Quoting [EMAIL PROTECTED]:

> Thanks.  Someone on this board told me that before.
> 
> When I use : <%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core";
> %> followed by <c:out value = '${param.search}'/>, the outout is
> ${param.search} instead of the search parameter value.  When I use the other
> library it works as expected.  Any ideas why?
> 
> -----Original Message-----
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 11:16 AM
> To: Tag Libraries Users List
> Subject: Re: JSTL Function Library
> 
> 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/>

-- 
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