2012-02-23 38 views
0

我嘗試使用as索引來訪問數組,計算結果。通過計算結果訪問數組索引

<tr:outputText value="#{myController.form.model.arr[(status.index/15)]}"/>

status.index來自一個tr:iterator可變varStatus

看起來好像,這是一個雙重價值,因爲我得到了javax.servlet.ServletException: For input string: "0.0"

我可以以某種方式將其轉換爲整數嗎?

回答

0

抱歉已解決。我有另一個星座,用一種自己的方法添加.toString。它按照它在這裏發佈的方式工作。