fmt的标签为辅助性功能标签
设置编码 <fmt:requestEncoding value=""> 国际化相关 <fmt:setLocale value="" />其中value可以从Locale.getAvailableLocales()中获取, locale会影响到时间,货币,数字等的显示
<fmt:timeZone value="">有效区域</fmt:timeZone>其中value值可以为Asia/Shanghai或者GMT-8等格式。可以通过String[] ids = TimeZone.getAvailableIDs(); 获取value可能值的数组。
<fmt:setTimeZone value="" /> <fmt:setTimeZone value="" var="" scope="" /> <fmt:bundle basename="" prefix=""> <fmt:messsage key=""> <fmt:param value=""></fmt:param> </fmt:message> </fmt:bundle> <fmt:setBundle basename="" var="" scope="" /> <fmt:message bundle="" key=""> <fmt:param>xxx</fmt:param> </fmt:message> 日期时间数字与字符串的相互转化(这里的数字包括一般数字,百分数,货币) <fmt:formatNumber value="" type="" pattern="" />数字转化为字符串,其中的属性有value, type, pattern, currencyCode, currencySymbol, groupingUsed, maxIntegerDigits, minIntegerDigits, maxFractionDigits, minFractionDigits, var, scope
<fmt:parseNumber value="" parseLocale=""></fmt:parseNumber>字符串解析为数字,其中的属性有value, parseLocale, type, pattern, var, scope
<fmt:formatDate value="" pattern="" type="" timeZone="" />时间日期转化为字符串,其中的属性有value, type, pattern, dateStyle, timeStyle, timeZone, var, scope
<fmt:parseDate value="" pattern="" parseLocale="" />字符串解析为时间日期,拥有和formatDate完全一样的属性(还有一个parseLocale)。
转载于:https://www.cnblogs.com/liunianfeiyu/p/7350936.html
相关资源:JAVA上百实例源码以及开源项目