/* ==================================================================== * The Tmax soft License, Version 1.1 * * Copyright (c) 1997-2004 The Tmax software. * All rights reserved. * html code omitted for readability. /* ==================================================================== /* fn.jsp */ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

JSTL Functions Test

functions
Input Strings
Arguments
Results
length ${s1} ${fn:length(s1)}
toLowerCase ${s1} ${fn:toLowerCase(s1)}
toUpperCase ${s1} ${fn:toUpperCase(s1)}
substring ${s1} 11 17 ${fn:substring(s1, 11, 17)}
substringAfter ${s1} This ${fn:substringAfter(s1, "This")}
${s1} empty string ${fn:substringAfter(s1, "")}
substringBefore ${s1} JSTL ${fn:substringBefore(s1, "JSTL")}
replace ${s1} s * ${fn:replace(s1, "s", "*")}
contains ${s1} JSTL ${fn:contains(s1, "JSTL")}
${s1} jstl ${fn:contains(s1, "jstl")}
containsIgnoreCase ${s1} JSTL ${fn:containsIgnoreCase(s1, "JSTL")}
${s1} jstl ${fn:containsIgnoreCase(s1, "jstl")}
startsWith ${s1} This is ${fn:startsWith(s1, "This is")}
${s1} JSTL ${fn:startsWith(s1, "JSTL")}
endsWith ${s1} JSTL ${fn:endsWith(s1, "JSTL")}
${s1} Test ${fn:endsWith(s1, "Test")}
indexOf ${s1} JSTL ${fn:indexOf(s1, "JSTL")}
${s1} Test ${fn:indexOf(s1, "Test")}