Buffalo 對二維數組+ JST 的支持問題

2 views
Skip to first unread message

acale...@gmail.com

unread,
Apr 18, 2008, 11:30:31 PM4/18/08
to buffalo与Amowa, ch...@zhoujin.com
Buffalo Call Java 函數,獲取返回值是一個二維數組,即 re= reply.getResult(),然後將re與JST
Page 綁定即:{datas:re},在進行頁面渲染的時候, 數組的第一行,縂出現一個int值,如下:

JAVA 構造數據:
int[2][6] days = {0,1,2,3,4,5,6,7,8,9,10,11}

Buffalo re = reply.getResult()之後,re = {0,1,2,3,4,5,6,7,8,9,10,11}

傳入JST Page進行渲染:{datas:re}
{for a in datas}
{for b in a}
<span>${b}</span>
{/for}
{/for}

結果縂出現: int 0 1 2 3 4 5 int 6 7 8 9 10 11 ,爲什麽縂有一個int出現呢?如何不顯示int?
Reply all
Reply to author
Forward
0 new messages