【JSP开源代码栏目提醒】:网学会员--在 JSP开源代码编辑为广大网友搜集整理了:fmt_currency.jsp绩等信息,祝愿广大网友取得需要的信息,参考学习。
<%@ page contentType="text/html;charset=GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head><title>Currency Formatting</title></head>
<body>
<h3>Currency Formatting and locale:</h3>
<hr>
<!--中文,中国显示格式-->
<h5>Chinese, China</h5>
<fmt:setLocale value="zh_CN" />
<fmt:formatNumber type="currency" value="80000" /><br/>
<!--英语,英国显示格式-->
<h5>English, Great Britain</h5>
<fmt:setLocale value="en_GB" />
<fmt:formatNumber type="currency" value="80000" /><br/>
<fmt:formatNumber type="currency" value="80000" currencyCode="EUR"/><br/>
<!--英语,美国显示格式-->
<h5>English, USA</h5>
<fmt:setLocale value="en_US" />
<fmt:formatNumber type="currency" value="80000" /><br/>
</body>
上一篇:
fmt.jsp
下一篇:
成本管理详细介绍