JSTL 标 签
作者:曾卓
文档库
C 标准标签库......................................................................................................................................3
1.<c:out>.....................................................................................................................................3
2.<c:set>.....................................................................................................................................5
3.<c:remove>............................................................................................................................7
4.<c:catch>..................................................................................................................................8
5.<c:if>........................................................................................................................................9
6.<c:choose>.............................................................................................................................10
7.<c:when>................................................................................................................................12
8.<c:otherwise>.........................................................................................................................13
9. <c:forEach>...........................................................................................................................14
10. <c:forTokens>.....................................................................................................................19
11. <c:import>...........................................................................................................................20
12. <c:url>.................................................................................................................................23
13. <c:redirect>.........................................................................................................................24
14. <c:param>............................................................................................................................25
fmt 标签库.........................................................................................................................................26
9.5.1用于设置本地化环境的 <fmt:setLocale>标签 ..........................................................26
9.5.3用于显示资源配置文件信息的 <fmt:message>标签 .................................................27
9.5.4 用于参数传递的 <fmt:param>标签 ...........................................................................28
9.5.9用于解析数字的 <fmt:parseNumber>标签 .................................................................29
fn 函数...............................................................................................................................................31
0.1 长度函数 fn:length函数 .................................................................................................31
0.2 判断函数 fn:contains函数 .............................................................................................32
0.3fn:containsIgnoreCase 函数 .............................................................................................32
0.4词头判断函数 fn:startsWith函数 ....................................................................................32
0.5 词尾判断函数 fn:endsWith函数 ...................................................................................33
0.6 字符实体转换函数 fn:escapeXml函数 .........................................................................33
0.8 字符匹配函数 fn:indexOf函数 ......................................................................................33
0.9 分隔符函数 fn:join函数 .................................................................................................33
1.0替换函数 fn:replace函数 .................................................................................................34
1.1 分隔符转换数组函数 fn:split函数 ................................................................................34
1.2 字符串截取函数 fn:substring函数 ................................................................................35
1.4起始到定位截取字符串函数 fn:substringBefore函数 ...................................................35
1.5小写转换函数 fn:toLowerCase函数 ...............................................................................36
1.6 大写转换函数 fn:toUpperCase函数 ...............................................................................36
1.7 空格删除函数 fn:trim函数 .............................................................................................36
Jakarta Project: String Tag library.....................................................................................................36
Overview...................................................................................................................................36
湖南大众传媒学院 信息中心 Java 研发室 http://www.hnmmccn