1
我正在使用displaytag导出PDF。如果我在显示:列中给出total =“true”,最后一行包含总量,并且我可以使用numberformat格式化该值,但是在PDF中总值显示为未格式化。下面给出的是我的代码片段。如何在输出pdf格式中显示总价值行?
<display:column property="discountAmt" titleKey="DiscountAmt"
total="true" format="<%=currency_format%>"/>
<display:column property="orderGrandTotal" titleKey="GrandTotal"
sortable="true" format="<%=currency_format%>" class="numeric"
total="true"/>
在表中,包含总值的最后一行像1,913.30和12,033.50。但在PDF中显示为1913.3和12033.5。
请给我一个想法来格式化这个。