zoukankan      html  css  js  c++  java
  • jsp jstl标签库 el表达式

    一、JSTL标签是什么?

                提供了对国际化(I18N)的支持,它可以根据发出请求的客户端地域的不同来显示不同的语言。

    同时还提供了格式化数据和日期的方法。实现这些功能需要I18N格式标签库(I18N-capable formation tags liberary)。

    引入该标签库的方法为:<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

    二、I18N格式标签库提供了11个标签,这些 标签从功能上可以划分为3类如下:

    (1)数字日期格式化。formatNumber标签、formatData标签、parseNumber标签、parseDate标签、timeZone标签、setTimeZone标签。

    (2)读取消息资源。bundle标签、message标签、setBundle标签。

    (3)国际化。setlocale标签、requestEncoding标签。

    三、最常用到的标签:formatData标签(格式化日期),formatNumber标签(格式化数据)

       东奥集团端:废旧和其它收入项目管理 --编辑--税率字段显示四位小数例子:

    <input type="text" class="required-bg" size="14" maxlength="6" name="tax" id="tax"  value="<fmt:formatNumber value="${OtherIncomeGroup.tax }" pattern="#0.0000"></fmt:formatNumber>"  />
    东奥门店客户单;财务报表--收款情况日报表 列表
    <input type="text" name="dayReceiveDateEnd" class="datepickerClass "  value='<fmt:formatDate value="${currentDate }"  pattern="yyyy-MM-dd" />'  maxlength="11" />
  • 相关阅读:
    Ajax笔记(三)
    Ajax笔记(二)
    org.apache.commons.lang.StringUtils中常用的方法
    数位dp poj1850
    二分图 最小点覆盖 poj 3041
    poj 1789 prime
    c++三种进制格式
    c++面向行的输入getline()和get()
    最小生成树 prime算法 UVALive
    最短路 poj1125
  • 原文地址:https://www.cnblogs.com/czlovezmt/p/10242518.html
Copyright © 2011-2022 走看看