コード例 #1
0
 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();
   if (pageExtension != null && pageExtension.length() > 0) page = page + "." + pageExtension;
   serialize(result, response, page);
 }
コード例 #2
0
 protected Locale getLocale() {
   return ActionContext.getContext().getRequest().getLocale();
 }