How to create a custom Function for JSTL
So just a quick post. How do we create a custom function for JSTL. Let’s begin. 1. Create a .tld file under /WEB-INF 1234567891011<?xml version="1.0" encoding="UTF-8"?> <taglib version="2.1" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"> <tlib-version>1.0</tlib-version> <short-name>mytlds</short-name> <uri>http://www.noppanit.com/myTlds</uri> <function> <name>charAt</name> <function-class>com.nc98.expressions.Functions</function-class> [...]
Twitter
Facebook