problem with using JSTL function ${fn:Length()}
RAMJANESep 19 2007 — edited Sep 20 2007Hi All,
first of all sorry for my previous reply that was bcoz of problem in site. i tried to upadate my problem but not updating it properly.
i am getting the following exception while i m using a JSTL function ${fn:Length("sometext")}
ERROR [spring]:253 - Servlet.service() for servlet spring threw exception
org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c</h3><p>94: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${fn:length("words") == 5}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.</p><p>97: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${fn:length("Names")==5}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:76)
at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1535)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1481)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
I have already included taglib for functions as
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
and Also I am using
Tomcat 5.5, JSP 2.0, servlet 2.4
Also i check my web.xml for entry of latest servlet and it is thr
<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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
Pls Help me out frnds.
Thanks