struts2中格式化输出数字和日期的方法
2009-04-22 11:54
323 查看
资源文件
......
##format dates and numbers
global.format.money={0,number,#,##0}
global.format.date={0,date,yyyy-MM-dd}
JSP文件
格式化时间: <s:text name="global.format.date"><s:param value="birthday"></s:param></s:text>
格式化数字: <s:text name="global.format.money"><s:param value="price"/></s:text>
......
##format dates and numbers
global.format.money={0,number,#,##0}
global.format.date={0,date,yyyy-MM-dd}
JSP文件
格式化时间: <s:text name="global.format.date"><s:param value="birthday"></s:param></s:text>
格式化数字: <s:text name="global.format.money"><s:param value="price"/></s:text>
相关文章推荐
- struts2中格式化输出数字和日期的方法
- struts2中格式化输出数字和日期、截取小数点后两位数的方法
- struts2中格式化输出数字和日期、截取小数点后两位数的方法
- struts2 数字、日期的格式化输出
- WebWork/struts2中格式化输出数字和日期的方法
- XStream、JAXB 日期(Date)、数字(Number)格式化输出xml
- Oracle格式化数字和日期的方法
- python中日期和时间格式化输出的方法
- struts2 日期格式化输出标签
- XStream、JAXB 日期(Date)、数字(Number)格式化输出xml
- iOS中让一个数字字符串格式化(按照自己想要的格式输出)的方法
- struts2 中的日期格式化输出
- Struts2 格式化日期、时间和数字
- java 格式化输出数字的方法
- 使用fmt标签格式化输出日期和数字
- [Java] 格式化输出数字、日期
- struts2 <s:textfield />中的日期格式化输出
- 关于struts2的日期及数字格式化的简单说明
- Struts2 S标签 数字格式化成金额输出
- python中日期和时间格式化输出的方法小结