1
我有一個數字超過20個數字,我必須用逗號分隔符來格式化它。我必須從http會話讀取值。 我用這樣的:如何格式化struts2中的會話號碼
<s:property value="%{getText('{0,number,#,###.00}',{<%=hsession.getAttribute("calculated_forfeit") %>})}" />
,但它不工作,錯誤的是: 等號預期 !!!!!!!!! getText格式適用於變量,但我不確定http會話的值。 該技術是struts2。
請幫助
+1不錯的答案。 – 2012-08-08 07:42:38