一种是 直接后台把double转String 然后传给前台
double d = 8888888888.0;
DecimalFormat df = new DecimalFormat( "###############0.0 ");
System.out.println(df.format(d));
另一种 是后台必须传的是Double 类型
jsp 页面
<s:property value="%{formatDouble('${a}')}"/>
action
public String formatDouble(double s){
DecimalFormat fmt = new DecimalFormat( "###############0.0 ");
return fmt.format(s);
}