的使用

<bean:write>的使用时候,如果需要格式化,可以采用以下方式

<bean:write  name="dataBean" property="modDate" formatKey="global.formatDateTime"/>

 

MessageResources.properties中定义一下message

global.formatDateTime=yyyy/MM/dd/ HH:mm:ss

posted @ 2008-10-17 10:16  易欧  阅读(230)  评论(0编辑  收藏  举报