1
我有一個動作,是與這些行結尾:如何從顯示結果中獲得輸入流:表?
String pageVisitJson = new Gson().toJson(pageVisitLogList);
is = new ByteArrayInputStream(pageVisitJson.getBytes());
return SUCCESS;
這種作用的結果是:
@Results({
@Result(name=ActionSupport.SUCCESS , type="stream", params={"contentType", "text/html", "inputName", "is"}),
@Result(name=ActionSupport.SUCCESS, type="tiles", location="/pageVisitReport.tiles")
})
pageVisitReport.tiles
是我需要使用顯示標記來顯示錶的頁面。現在,如何在顯示標籤中訪問輸入流is
。我的@Result
不正確還是還有其他內容?顯示錶將進一步由jQuery處理。
每當我的動作被調用,它只是顯示一個簡單的頁面上的所有記錄。
你不能將兩個結果映射到相同的結果名稱 –
好吧,我也在考慮它......並且對於問題的觀點,我把這一行放在這裏,因爲我需要將該輸入流發送到pagevisitreport。瓷磚以及。 –