引入函数库

<%@ taglib prefix=”fn”  uri=”http://java.sun.com/jsp/jstl/functions”%>

用法:

jstl函数库,函数调用必须在EL表达式之前,前缀+冒号+函数名 ${fn:length(hello)}

 

自定义函数库:

     1、定义类和方法(必须是public static)

     2、编写自定义tld文件,并且将此文件放到web-inf或子目录下

     3、引入函数库 <%@ taglib prefix=”my” uri=”http://cn.synjones.com/myfunctions”%>

相关文章:

  • 2021-08-28
  • 2021-05-26
  • 2021-04-10
  • 2021-10-12
  • 2021-07-25
  • 2022-12-23
  • 2021-11-29
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2021-12-28
  • 2022-12-23
  • 2022-01-14
  • 2021-08-29
  • 2022-01-11
相关资源
相似解决方案