I am trying to use a JSTL EL function (fn:toUpperCase), although this
problem occurs with any function.
I think it has something to do with my setup.
After looking around, I realised I needed to use a Servlet 2.4 web.xml .
No I have done that I get another error.
If I use code like this:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>

<c:set var="initials" value="${fn:toUpperCase(param.login)}"/>

The error I get is:
org.apache.jasper.JasperException: /web/logonController.jsp(6,0)
According to TLD or attribute directive in tag file, attribute value
does not accept any expressions

I just can't seem to get a syntax that works with the functions. I am
using the other JSTL tags OK.

I am using TOMCAT 5.0.19, jakarta-taglibs-standard-1.1.0

I have setup my TLD descriptions in the web.xml as:
<jsp-config>        
        <taglib>
            <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
            <taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
            <taglib-location>/WEB-INF/tlds/x.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
            <taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
            <taglib-location>/WEB-INF/tlds/sql.tld</taglib-location>
        </taglib>
        <taglib>
 
<taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
            <taglib-location>/WEB-INF/tlds/fn.tld</taglib-location>
        </taglib>
    </jsp-config>

 

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

Reply via email to