JSTL 1.1 functions library
JSTL functions
1.1
f
http://sastruts.seasar.org/functions
Escapes characters that could be interpreted as HTML.
h
org.seasar.struts.taglib.S2Functions
java.lang.String h(java.lang.Object)
${f:h(param:info)}
Escapes characters that could be interpreted as URL.
u
org.seasar.struts.taglib.S2Functions
java.lang.String u(java.lang.String)
${f:u(param:info)}
Formats characters that could be interpreted as Date.
date
org.seasar.struts.taglib.S2Functions
java.util.Date date(java.lang.String, java.lang.String)
<fmt:formatDate value="${f:date(date, 'yyyyMMdd')}" pattern="yyyy/MM/dd"/>
Formats characters that could be interpreted as Number.
number
org.seasar.struts.taglib.S2Functions
java.lang.Number number(java.lang.String, java.lang.String)
<fmt:formatNumber value="${f:number(number, '####'}" pattern="#,###"/>
Converts line break to br tag.
br
org.seasar.struts.taglib.S2Functions
java.lang.String br(java.lang.String)
${f:br(f:h(textarea))}
Escapes space that could be interpreted as HTML.
nbsp
org.seasar.struts.taglib.S2Functions
java.lang.String nbsp(java.lang.String)
${f:br(f:nbsp(f:h(textarea)))}
Calculates URL.
url
org.seasar.struts.taglib.S2Functions
java.lang.String url(java.lang.String)
<a href="${f:url(param:info)}" ...
Converts value to label.
label
org.seasar.struts.taglib.S2Functions
java.lang.String label(java.lang.Object, java.util.List, java.lang.String, java.lang.String)
${f:label(e.departmentId, deptItems, "id", "name")}