7

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.

Vladimir Ivanov
  • 42,730
  • 18
  • 77
  • 103
Ali
  • 115
  • 1
  • 2
  • 9

3 Answers3

7

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" %>
axtavt
  • 239,438
  • 41
  • 511
  • 482
  • Thanks axtavt , yes am using the `...` inside ` – Ali Mar 29 '11 at 12:15
  • @Ali: Have you checked taglib declaration? – axtavt Mar 29 '11 at 12:24
  • Yes, an i changed it to `<%@ taglib prefix = "c" uri ="http://java.sun.com/jsp/jstl/core" %>`, The exception has been solved but the form didn't bind correctly. Any suggestions ? Thanks a lot for your help – Ali Mar 29 '11 at 12:37
3

You need the function tag library declaration also.

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
xecaps12
  • 5,316
  • 3
  • 27
  • 42
2

Try axtavt's answer and if it is still not working, add <%@ page isELIgnored ="false" %> at the top of the jsp.

zawhtut
  • 8,335
  • 5
  • 52
  • 76