Fn JSTL is not supported

when I use ${fn:contains()}" , it throws the following exception:

 org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported 

How can I resolve this exception?

and if I need to download a newer version of jstl.jar and standard.jar, can someone send me a link?

Thanks in advance.

+7
source share
3 answers

I think you are trying to use this expression as an attribute of some JSTL tag:

 <c:if test = "${fn:contains()}">...</c:if> 

If so, make sure you import the JSTL taglib version 1.1 (pay attention to the URI - it should contain jsp ):

 <%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %> 
+6
source

You also need to declare a function tag library.

 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 
+3
source

Try answering axtavt, and if it still doesn't work, add <%@ page isELIgnored ="false" %> at the top of jsp.

+2
source

All Articles