public void serialize(Serializable result, HttpServletResponse response)
throws IOException {
String page;
Action<Serializable, Serializable> action = ActionContext.getContext().getAction();
if (action instanceof Pageable) {
Pageable pageAction = (Pageable)action;
page = pageAction.getPage();
} else {
page = getPage(action);
}
// 页面扩展名
String pageExtension = getPageExtension();