Numbers not formatted properly in Struts 2

后端 未结 2 1008
不知归路
不知归路 2021-01-16 11:22

I am using following syntax to display a value in a proper number format, e.g. 1,250.00.



        
2条回答
  •  借酒劲吻你
    2021-01-16 12:08

    First of all, if you want to display multiple values from a list, you need an iterator;

    second, if plan is a list in the action with a getter method

    public List getPlan() { return plan; }
    

    then you don't have to put the # ahead of the variable.

    The right code for your case would be:

    
        
    
    

    There's a related Q&A on the topic.


    EDIT

    Since you have

     
        
    $

    Then it should be:

    
        
    
    

提交回复
热议问题