Format number in Struts 2 tag

前端 未结 6 2033
梦毁少年i
梦毁少年i 2021-02-01 23:28

I would like to format number displayed by tag in Struts 2. There is a double value. How can I do that? Sho

6条回答
  •  没有蜡笔的小新
    2021-02-01 23:49

    If your property is not number in your action then the getText will not work on it. The pattern accept numbers only. In this case you can go with fmt as mentioned by @sarie

    
    

提交回复
热议问题