Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fn JSTL not supported

Tags:

java

jstl

appfuse

when am using ${fn:contains()}" it causes the following exception:

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

How can i solve this exception?

and if I need to download a newer version of jstl.jar & standard.jar could any one send me a link?

Thanks in advance.

like image 767
Ali Avatar asked Mar 29 '11 11:03

Ali


2 Answers

I guess 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 that you imported JSTL taglib of version 1.1 (note the URI - it should contain jsp):

<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
like image 81
axtavt Avatar answered Oct 21 '22 02:10

axtavt


You need the function tag library declaration also.

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
like image 25
xecaps12 Avatar answered Oct 21 '22 01:10

xecaps12