ユーザーが現在表示しているページにアクティブなクラスを追加しようとしていますが、JSTL 関数を使用できません。私は何を間違っていますか?
xmlns:fn="http://java.sun.com/jstl/functions"
これをh:link
styleClass="#{fn:containsIgnoreCase(request.requestURI,'index') ? 'active' : ''}"
このエラーが発生します:
styleClass="#{fn:containsIgnoreCase(request.requestURI,'index')}" Function 'fn:containsIgnoreCase' not found