jstl(fmt)

来源:互联网 发布:淘宝怎么查付款顺序 编辑:程序博客网 时间:2024/06/14 06:58
<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" import="com.javaweb.*"%><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>  <title></title>  </head>    <body><%-- 设置区域为法国 --%><fmt:setLocale value="fr_fr" />France:<fmt:formatNumber value="23456789.012"/><br><%-- 设置区域为中国--%><fmt:setLocale value="zh_cn" />China:<fmt:formatNumber value="23456789.012"/><br><%-- 设置区域为法国 --%><fmt:setLocale value="de_de" />Germany:<fmt:formatNumber value="23456789.012"/><br>  </body></html>