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

サーブレットでこれを行った後、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 に答える