0
String query = "SELECT pid, src_big FROM photo WHERE owner=" + yourUid;
    List<JsonObject> queryResults = 
    facebookClient.executeFqlQuery(query, JsonObject.class);

在我的 servlet 中完成此操作后,我应该如何在我的 jsp 页面中检索 pid 和 src_big 等数据?

<c:forEach items="${photosList}" var="photo">
    //what should I type here to retrieve the data?
</c:forEach> 
4

1 回答 1

0

我通过遍历 JsonObject 列表解决了这个问题,然后我检索了 src_big 数据并将它们分别存储在另一个字符串列表(photosList)中。

<c:forEach items="${photosList}" var="photo">
    <img src='${photo}' height="250" width="250" />
</c:forEach>
于 2013-09-24T23:36:19.287 回答