我知道bean write format 但我试了没用,是不是因为我取的值是字符型的
解决方案 »
- 求助:s:hidden隐藏变量中的数组传递到Action是null?
- hibernate3.5.6版本 使用annotation出现org.hibernate.MappingException异常
- myeclipse手动安装struts2.0
- 弱弱的问一下,下载时提供的文件各代表什么?
- Cannot create JDBC driver of class '' for connect URL 'null'
- 精通EJB第二版(中文版) 免费下载!
- jforum求大神
- tomcat下bean怎么用啊,急
- >>>菜鸟问题,什么是webservices?怎么实现webservices?<<<<
- ★★一个Struts1.1的应用,打包成strutstest.war。在Websphere5下发布。启动正常,但是没有载入web.xml★★
- jboss 3.2中新部署的ejb(*.jar)文件 jsp调用时抛出异常???
- JBOSS事务问题!急
import java.text.*;
import java.util.*;public class Local{
public static void main(String[] args)
{
Date currentDate = new Date();SimpleDateFormat sdFormat = new java.text.SimpleDateFormat("yyyy-MM-dd");String dateString = sdFormat.format(currentDate);
System.out.println(dateString);String s="8.88";
DecimalFormat dFormat = new DecimalFormat("#,##0.00");
String cString = dFormat.format(Double.parseDouble(s));
System.out.println(cString);}}
好象是<bean:write name="StatForm" property="property6" format="YYYY-MM-DD"/>
但我写出来没有用