jstl的<ftm>怎么转换datetime转换成date类型

没有更多推荐了,
不良信息举报
举报内容:
fmt:formatDate的输出格式 .
举报原因:
原文地址:
原因补充:
最多只允许输入30个字
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!博客分类:
转载自:http://blog.csdn.net/hakunamatata2008/archive//6156203.aspx
在日常开发中github,google& 上面优秀的文章和项目是必不可少的,您也许需要这个
所有标签:
fmt:requestEncoding
fmt:setLocale
fmt:timeZone
fmt:setTimeZone
fmt:bundle
fmt:setBundle
fmt:message
fmt:formatNumber
fmt:parseNumber
fmt:formatDate
fmt:parseDate&
&%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %&
jstl fmt 函数大全
主要功能格式化
日期格式(日22点00分23秒)
&fmt:formatDate value="&%=new Date() %&" pattern="yyyy年MM月dd日HH点mm分ss秒" /&
保留两位小数
&fmt:formatNumber value="123." pattern="0.00"/&
格式数字(45,678.234)
&fmt:formatNumber type="number" value="" /&
格式百分比(23%)
&fmt:formatNumber type="percent" value="0.2345" /&
&fmt:formatNumber& value="${item.DD_NUM/item.TOL_NUM}" type="number" pattern="0.00%" /&&
&fmt:bundle&:资源绑定。除了以前提到过的在web.xml中声明以外,还可以利用此标签。
例&fmt:bundle basename="message"&&/fmt:bundle&
&fmt:setLocale&:设置locale,主要是用于这种情况,一个中国人在国外,locale是en_US,但想用中文显示。
例:&fmt:setLocal value="zh_CN"/&
&fmt:message&:输出properties文件中的指定内容。
例&fmt:message key="user"/&
&fmt:formatNumber type="number"&格式化普通数字
&fmt:formatNumber type="percent"&格式化百分比
三种数字类型参数:currency,number,percent
&fmt:parseNumber var="i" type="number" value="" /&
&c:out value="${i}" escapeXml="false" /& 分析出数字
&fmt:requestEncoding value="GB18030"/& 格式化文本编码
&fmt:formatDate value="${date}" type="both" timeStyle="long" dateStyle="long" /&
type="both" 输入日期也同时输出具体时间
timeStyle="long" 时间以“长”格式输出 差别:下午02时06分59秒 与 14:06:59
dateStyle="long" 日期以“长”格式输出 差别:日 与
四种长短参数:long,short,medium,full
&fmt:timeZone value="${timezone}"/& 时区偏移,与上面可配合使用:
&fmt:formatDate value="${d}" timeZone="${zn}" type="both" /&
&fmt:parseDate var="i" type="date" value="" /&
&c:out value="${i}" escapeXml="false" /& 分析出时间
1)导入jstl 包,加载ftm标签
首先将jstl的jar包放入类库中,使用1.2版本
其次在jsp文件中引入所需要的 标记库,对于 ftm 标签,如下:
view plaincopy to clipboardprint?
&&& &%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %&&
2)输出 .properties 文件中的信息
view plaincopy to clipboardprint?
&&& &fmt:bundle basename="fmt"&&
&&&&&&& test value:&fmt:message key="test" /&&
&&& &/fmt:bundle&&
其中 &fmt:bundle basename="fmt"& 指定了资源文件的位置,例如: fmt 表示类根路径下的 fmt.properties 文件,my.fmt 表示 包my下的ftm.properties文件;
&fmt:message key="test" /&表示读取 key为test的值,并输出;
3)给出1个例子,包含许多标签的使用
view plaincopy to clipboardprint?
&&& &%@ page language="java" contentType="text/ charset=utf-8" pageEncoding="utf-8"%&&
&&& &%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %&&
&&& &%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %&&
&&& String path = request.getContextPath();&
&&& String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";&
&&& &!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&&
&&& &html&&
&&&&& &head&&
&&&&&&& &base href="&%=basePath%&"&&
&&&&&&& &!--&
&&&&&&& &link rel="stylesheet" type="text/css" href="styles.css" mce_href="styles.css"&&
&&&&&&& --&&
&&&&&&& &mce:style type="text/css"&&!--&
&&&&&&&&&&& body {background-color:color:}&
&&&&&&&&&&& span {text-align:color:background-color:}&
&&&&&&&&&&& .notice {color: rgb(250,37,62);}&
&&&&&&&&&&& hr { background-color: height: 5}&
&&& --&&/mce:style&&style type="text/css" mce_bogus="1"&&&&& body {background-color:color:}&
&&&&&&&&&&& span {text-align:color:background-color:}&
&&&&&&&&&&& .notice {color: rgb(250,37,62);}&
&&&&&&&&&&& hr { background-color: height: 5}&
&&&&&&& &/style&&
&&&&& &/head&&
&&&&& &body&&
&&&&&&& &fmt:bundle basename="jstl.jstl"&&
&&&&&&&&&&& &span&从 .properties 文件中读取最简单的信息输出:&/span&&
&&&&&&&&&&& &fmt:message key="basemsg" /&&
&&&&&&&&&&& &hr/&&
&&&&&&&&&&& &span&从 .properties 文件中读取带有可填参数的信息,填入参数并输出:&/span&&
&&&&&&&&&&& &fmt:message key="msgwithparam"&&
&&&&&&&&&&&&&&& &span class="notice"&&fmt:param value="param-1-value" /&&
&&&&&&&&&&&&&&& &span class="notice"&&fmt:param value="param-2-value" /&&
&&&&&&&&&&& &/fmt:message&&
&&&&&&&&&&& &hr/&&
&&&&&&&&&&& &span&数字 格式化并输出:&/span&&br/&&
&&&&&&&&&&& 数字:&fmt:formatNumber value="" type="number"/&&br/&&
&&&&&&&&&&& &!-- 定制数字格式时,# 表示按照默认格式来, --&&
&&&&&&&&&&& 数字,定制了格式:&fmt:formatNumber value="" type="number" pattern="#,#00.0#" /&&br/&&
&&&&&&&&&&& 货币:&fmt:formatNumber value="35000" type="currency" /&&br/&&
&&&&&&&&&&& 百分比:&fmt:formatNumber value="0.317" type="percent" /&&br/&&
&&&&&&&&&&& &hr/&&
&&&&&&&&&&& &span&格式化日期:&/span&&br/&&
&&&&&&&&&&& &jsp:useBean id="now" class="java.util.Date"&&/jsp:useBean&&
&&&&&&&&&&& &fmt:formatDate& value="${now}" type="date" /&&br/&&
&&&&&&&&&&& &fmt:formatDate& value="${now}" type="both" dateStyle="long" timeStyle="long" /&&br/&&
&&&&&&&&&&& &fmt:formatDate& value="${now}" type="both" pattern="yyyy.MM.dd HH:mm:ss" /&&br/&&
&&&&&&&&&&& &hr/&&
&&&&&&&&&&& &span&将字符串转化到正确的数字:&br/&&
&&&&&&&&&&& 忽略第一个不符合数字条件的字符和其之后的所有字符,如果字符串不是以数字开头则报错&/span&&br/&&
&&&&&&&&&&& &fmt:parseNumber type="number" &123.02a&/fmt:parseNumber&&br/&&
&&&&&&&&&&& &fmt:parseNumber type="number" pattern="#,#00.0#"&123&/fmt:parseNumber&&br/&&
&&&&&&&&&&& &fmt:parseNumber type="number" pattern="#,#00.0#"&123.00a1&/fmt:parseNumber&&br/&&
&&&&&&&&&&& &fmt:parseNumber type="number" pattern="#,#00.0#"&3saaa&/fmt:parseNumber&&br/&&
&&&&&&&&&&&&&
&&&&&&& &/fmt:bundle&&
&&&&&&&&&&&&&
&&&&& &/body&&
&&& &/html&&
jstl 包下的 jstl.properties 文件:
view plaincopy to clipboardprint?
&&& #for jstl learn&
&&& basemsg=This is a base msg.&
&&& msgwithparam=This is a msg with params:first &font color="red"&{0}&/font& second &font color="aqua"& {1}&/font& .&&
国际化格式标签库包括国际化,消息和数字日期格式化:
(1) 国际化:&fmt:setLocale& &fmt::requestEncoding&
如:
&%@ page language="java" contentType="text/ charset=gb2312" import="java.util.*"%&
&%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&
&%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&
&!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&
&html&
&head&
&meta http-equiv="Content-Type" content="text/ charset=ISO-8859-1"&
&title&Insert title here&/title&
&/head&
&body&
&c:set var="todayValue" value="&%=new Date() %&"/&
中文-大陆:&fmt:setLocale value="zh"/&
&fmt:formatDate value="${todayValue}"/&&br&
中文-台湾&fmt:setLocale value="zh_tw"/&
&fmt:formatDate value="${todayValue}"/&&br&
中文-新加坡&fmt:setLocale value="zh_sg"/&
&fmt:formatDate value="${todayValue}"/&&br&
英文:&fmt:setLocale value="en"/&
&fmt:formatDate value="${todayValue}"/&
&/body&
&/html&
中文-大陆:
中文-新加坡 25-十二月-07
英文: Dec 25, 2007
(2)消息标签:&fmt:bundle& &fmt:message& &fmt:setBundle& &fmt:param&
如:
&%@ page language="java" contentType="text/ charset=gb2312" import="java.util.*"%&
&%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&
&%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&
&!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&
&html&
&head&
&title&bundle test&/title&
&/head&
&body&
&fmt:bundle basename="dbconn"&
数据库驱动程序名:&fmt:message key="driverName"/&&br&
连接字符串:&fmt:message key="connString"/&&br&
用户名:&fmt:message key="userName"/&&br&
密码:&fmt:message key="password" var="password"/&
&&&& &c:out value="${password}"/&&br&
名字:&fmt:message key="name"/&&br&
动态提示信息:&fmt:message key="messageTemp"/&&br&
&/fmt:bundle&
&!-- 修改.properties文件中某个键的动态值 --&
&c:set var="todayTemp" value="&%=new Date() %&"/&
&fmt:setBundle basename="dbconn"/&
动态提示信息:
&fmt:message key="messageTemp"&
& &fmt:param&邓子云&/fmt:param&
& &fmt:param value="${todayTemp}"&&/fmt:param&
&/fmt:message&
&/body&
&/html&
浏览 88902
浏览: 422215 次
来自: 上海
ireport分页的话代码写起来有些复杂,我以前试过,比较简单 ...
不复制粘贴能死?
nice,problem solved,thanks!
引用的jar包需要怎么加在命令里面?十多个呢,为什么配在MAN ...
看到你的问题,有帮助,我之前都是手动的clear项目下的cla ...
(window.slotbydup=window.slotbydup || []).push({
id: '4773203',
container: s,
size: '200,200',
display: 'inlay-fix'jsp页面格式化数字或时间
转载自: http://blog.csdn.net/hakunamatata2008/archive//6156203.aspx
fmt:requestEncoding
fmt:setLocale
fmt:timeZone
fmt:setTimeZone
fmt:bundle
fmt:setBundle
fmt:message
fmt:formatNumber
fmt:parseNumber
fmt:formatDate
fmt:parseDate
&%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %&
jstl fmt 函数大全
主要功能格式化
日期格式(日22点00分23秒)
&fmt:formatDate value="&%=new Date() %&" pattern="yyyy年MM月dd日HH点mm分ss秒" /&
保留两位小数
&fmt:formatNumber value="123." pattern="0.00"/&
格式数字(45,678.234)
&fmt:formatNumber type="number" value="" /&
格式百分比(23%)
&fmt:formatNumber type="percent" value="0.2345" /&
&fmt:formatNumber
value="${item.DD_NUM/item.TOL_NUM}" type="number" pattern="0.00%" /&
&fmt:bundle&:资源绑定。除了以前提到过的在web.xml中声明以外,还可以利用此标签。
例&fmt:bundle basename="message"&&/fmt:bundle&
&fmt:setLocale&:设置locale,主要是用于这种情况,一个中国人在国外,locale是en_US,但想用中文显示。
例:&fmt:setLocal value="zh_CN"/&
&fmt:message&:输出properties文件中的指定内容。
例&fmt:message key="user"/&
&fmt:formatNumber type="number"&格式化普通数字
&fmt:formatNumber type="percent"&格式化百分比
三种数字类型参数:currency,number,percent
&fmt:parseNumber var="i" type="number" value="" /&
&c:out value="${i}" escapeXml="false" /& 分析出数字
&fmt:requestEncoding value="GB18030"/& 格式化文本编码
&fmt:formatDate value="${date}" type="both" timeStyle="long" dateStyle="long" /&
type="both" 输入日期也同时输出具体时间
timeStyle="long" 时间以&长&格式输出 差别:下午02时06分59秒 与 14:06:59
dateStyle="long" 日期以&长&格式输出 差别:日 与
四种长短参数:long,short,medium,full
&fmt:timeZone value="${timezone}"/& 时区偏移,与上面可配合使用:
&fmt:formatDate value="${d}" timeZone="${zn}" type="both" /&
&fmt:parseDate var="i" type="date" value="" /&
&c:out value="${i}" escapeXml="false" /& 分析出时间
1)导入jstl 包,加载ftm标签
首先将jstl的jar包放入类库中,使用1.2版本
其次在jsp文件中引入所需要的 标记库,对于 ftm 标签,如下:
view plaincopy to clipboardprint?
&%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %&
2)输出 .properties 文件中的信息
view plaincopy to clipboardprint?
&fmt:bundle basename="fmt"&
test value:&fmt:message key="test" /&
&/fmt:bundle&
其中 &fmt:bundle basename="fmt"& 指定了资源文件的位置,例如: fmt 表示类根路径下的 fmt.properties 文件,my.fmt 表示 包my下的ftm.properties文件;
&fmt:message key="test" /&表示读取 key为test的值,并输出;
3)给出1个例子,包含许多标签的使用
view plaincopy to clipboardprint?
&%@ page language="java" contentType="text/ charset=utf-8" pageEncoding="utf-8"%&
&%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %&
&%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %&
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
&!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&
&base href="&%=basePath%&"&
&link rel="stylesheet" type="text/css" href="styles.css" mce_href="styles.css"&
&mce:style type="text/css"&&!--
body {background-color:color:}
span {text-align:color:background-color:}
.notice {color: rgb(250,37,62);}
hr { background-color: height: 5}
--&&/mce:style&&style type="text/css" mce_bogus="1"&
body {background-color: black;color: white;}
span {text-align: center;color: green;background-color: yellow;}
.notice {color: rgb(250,37,62);}
hr { background-color: fuchsia; height: 5px;}
&fmt:bundle basename="jstl.jstl"&
&span&从 .properties 文件中读取最简单的信息输出:&/span&
&fmt:message key="basemsg" /&
&span&从 .properties 文件中读取带有可填参数的信息,填入参数并输出:&/span&
&fmt:message key="msgwithparam"&
&span class="notice"&&fmt:param value="param-1-value" /&
&span class="notice"&&fmt:param value="param-2-value" /&
&/fmt:message&
&span&数字 格式化并输出:&/span&&br/&
数字:&fmt:formatNumber value="" type="number"/&&br/&
&!-- 定制数字格式时,# 表示按照默认格式来, --&
数字,定制了格式:&fmt:formatNumber value="" type="number" pattern="#,#00.0#" /&&br/&
货币:&fmt:formatNumber value="35000" type="currency" /&&br/&
百分比:&fmt:formatNumber value="0.317" type="percent" /&&br/&
&span&格式化日期:&/span&&br/&
&jsp:useBean id="now" class="java.util.Date"&&/jsp:useBean&
&fmt:formatDate
value="${now}" type="date" /&&br/&
&fmt:formatDate
value="${now}" type="both" dateStyle="long" timeStyle="long" /&&br/&
&fmt:formatDate
value="${now}" type="both" pattern="yyyy.MM.dd HH:mm:ss" /&&br/&
&span&将字符串转化到正确的数字:&br/&
忽略第一个不符合数字条件的字符和其之后的所有字符,如果字符串不是以数字开头则报错&/span&&br/&
&fmt:parseNumber type="number" &123.02a&/fmt:parseNumber&&br/&
&fmt:parseNumber type="number" pattern="#,#00.0#"&123&/fmt:parseNumber&&br/&
&fmt:parseNumber type="number" pattern="#,#00.0#"&123.00a1&/fmt:parseNumber&&br/&
&fmt:parseNumber type="number" pattern="#,#00.0#"&3saaa&/fmt:parseNumber&&br/&
&/fmt:bundle&
jstl 包下的 jstl.properties 文件:
view plaincopy to clipboardprint?
#for jstl learn
basemsg=This is a base msg.
msgwithparam=This is a msg with params:first &font color="red"&{0}&/font& second &font color="aqua"& {1}&/font& .
国际化格式标签库包括国际化,消息和数字日期格式化:
(1) 国际化:&fmt:setLocale& &fmt::requestEncoding&
&%@ page language="java" contentType="text/ charset=gb2312" import="java.util.*"%&
&%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&
&%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&
&!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&
&meta http-equiv="Content-Type" content="text/ charset=ISO-8859-1"&
&title&Insert title here&/title&
&c:set var="todayValue" value="&%=new Date() %&"/&
中文-大陆:&fmt:setLocale value="zh"/&
&fmt:formatDate value="${todayValue}"/&&br&
中文-台湾&fmt:setLocale value="zh_tw"/&
&fmt:formatDate value="${todayValue}"/&&br&
中文-新加坡&fmt:setLocale value="zh_sg"/&
&fmt:formatDate value="${todayValue}"/&&br&
英文:&fmt:setLocale value="en"/&
&fmt:formatDate value="${todayValue}"/&
中文-大陆:
中文-新加坡 25-十二月-07
英文: Dec 25, 2007
(2)消息标签:&fmt:bundle& &fmt:message& &fmt:setBundle& &fmt:param&
&%@ page language="java" contentType="text/ charset=gb2312" import="java.util.*"%&
&%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&
&%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&
&!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&
&title&bundle test&/title&
&fmt:bundle basename="dbconn"&
数据库驱动程序名:&fmt:message key="driverName"/&&br&
连接字符串:&fmt:message key="connString"/&&br&
用户名:&fmt:message key="userName"/&&br&
密码:&fmt:message key="password" var="password"/&
&c:out value="${password}"/&&br&
名字:&fmt:message key="name"/&&br&
动态提示信息:&fmt:message key="messageTemp"/&&br&
&/fmt:bundle&
&!-- 修改.properties文件中某个键的动态值 --&
&c:set var="todayTemp" value="&%=new Date() %&"/&
&fmt:setBundle basename="dbconn"/&
动态提示信息:
&fmt:message key="messageTemp"&
&fmt:param&邓子云&/fmt:param&
&fmt:param value="${todayTemp}"&&/fmt:param&
&/fmt:message&
阅读(...) 评论()JSTL&fmt&日期格式化
jstl中的日期格式化
&%@ taglib prefix="c" uri=""
&%@ taglib prefix="fmt" uri=""
&fmt:formatDate var="articleDate"
value="${article.adate }"
pattern="MM-dd"/&${articleDate }
&fmt:parseDate value="${param.date}" var="date"
pattern="yyyy/MM/dd:HH:mm:ss&
&fmt:parseDate value="${param.isoDate}"
var="isoDate" pattern="yyyyMMdd'T'HHmmss"&
The input parameters must match the patterns, or the JSP will
thrown an exception. This page does no error handling.
Input parameters:
:13:30:00&& Java
format: Thu Apr 01 13:30:00 CST 2004
Java format: Mon May 31 23:59:59 CDT 2004
Tag Output
Attribute: required. Tag has no body.
&fmt:formatDate value="${date}"
type="both"/&
& 13:30:00&
&fmt:formatDate value="${isoDate}"
type="both"/&
& 23:59:59&
Attribute: optional. Indicates what to print: date, time, or
&fmt:formatDate value="${date}"
type="date"/&
&fmt:formatDate value="${isoDate}"
type="time"/&
&23:59:59&
Attribute: dateS optional. Varies the date format.
&fmt:formatDate value="${isoDate}" type="date"
dateStyle="default"/&
&fmt:formatDate value="${isoDate}" type="date"
dateStyle="short"/&
&fmt:formatDate value="${isoDate}" type="date"
dateStyle="medium"/&
&fmt:formatDate value="${isoDate}" type="date"
dateStyle="long"/&
&fmt:formatDate value="${isoDate}" type="date"
dateStyle="full"/&
&日 星期一&
Attribute: timeS optional. Varies the time format.
&fmt:formatDate value="${isoDate}" type="time"
timeStyle="default"/&
&fmt:formatDate value="${isoDate}" type="time"
timeStyle="short"/&
下午11:59&
&fmt:formatDate value="${isoDate}" type="time"
timeStyle="medium"/&
&fmt:formatDate value="${isoDate}" type="time"
timeStyle="long"/&
&下午11时59分59秒&
&fmt:formatDate value="${isoDate}" type="time"
timeStyle="full"/&
下午11时59分59秒 CDT&
&fmt:formatDate value="${isoDate}" pattern=
"MM/dd/yyyy HH:mm aa" type="time"
timeStyle="full"/&&/p&
PM&&&&&&&&&&&&&&
Attribute: optional. Inidcates date/time custom
&fmt:formatDate value="${date}" type="both"
pattern="EEEE, MMMM d, yyyy HH:mm:ss Z"/&
&星期四, 四月 1, :00
&fmt:formatDate value="${isoDate}" type="both"
pattern="d MMM yy, h:m:s a zzzz/&
&31 五月 04, 11:59:59 下午中央夏令时
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。我的目的是要把map中的value显示出来,其中key是字符串1、2、3、4、5 但数据库传回来是BigDecimal对象。
所以需要把它转换为String对象才能从map中取出value。
jstl中没有把数字转换为string的标签,比如&ftm:parseString&。我的解决方法是: &td& &c:set var="risklevel"&
&c:out value="${it.prodRiskLevel}" /& &/c:set& &c:out value="${riskLevelMap[risklevel]}" /& &/td& 注意:set标签体中使用out标签 ,MS表示通过out标签调用对象上的toString方法并把返回值赋给risklevel。否则如果这样的话:
&c:set var="risklevel" value =“${it.prodRiskLevel}" /&
表示把it.prodRiskLevel所值的对象赋给risklevel,这时risklevel是一个BigDecimal对象而不是String对象,当把他作为key的时候当然取不出value来了。
这里说的是把BigDecimal解析为String,其他类型的可以参考。
浏览 17032
我正好遇到这样的情况
&c:out value="${riskLevelMap[risklevel]}" /&
risklevel的值是int,riskLevelMap是&String,String&一直无法显示
若 把riskLevelMap&String,String& 改成了 &Short,String&
显示的时候没有问题。
下拉的时候 selected 的时候 ‘’与 0 比较 为true 导致下拉又有问题。
呵呵,不用谢,好久没有上je了,经验共享。
浏览: 21870 次
来自: 深圳
${riskLevelMap[fn:length(riskle ...
&div class=&quote_title ...
我正好遇到这样的情况&c:out value=& ...
确实很强啊~~佩服
看看同道的讨论 觉着很有意思 我也弄一个试试
思路很简单
把数 ...
(window.slotbydup=window.slotbydup || []).push({
id: '4773203',
container: s,
size: '200,200',
display: 'inlay-fix'

我要回帖

更多关于 datetime转换成date 的文章

 

随机推荐