I have an action, that ends with these lines:
String pageVisitJson = new Gson().toJson(pageVisitLogList);
is = new ByteArrayInputStream(pageVisitJson.getBytes());
return SUCCESS;
And the result of this action is:
@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 the page where i need to display the table using display tag. Now, how the input stream is
can be accessed in display tag. Is my @Result
incorrect or is there something else? the display table will further be processed by jQuery.
Whenever my action is called, it just display all the records on a simple page.