Esempio n. 1
0
 /** Forward to an action */
 public void forwardAction(String actionUrl) {
   if (setFlashFalg) { // 若有新加入的Flash。更换key。
     String actionPath = this.request.getRequestURI();
     // 将以当前actionPath为key更替为下一个请求actionPath作为key
     flashManager.updateFlashKey(this.getSession(false), actionPath, actionUrl);
     setFlashFalg = false;
   }
   render = new ActionRender(actionUrl);
 }
Esempio n. 2
0
 /** Redirect to url */
 public void redirect(String url, boolean withQueryString) {
   if (setFlashFalg) {
     String actionPath = this.request.getRequestURI();
     String newActionPath = parsePath(actionPath, url);
     flashManager.updateFlashKey(this.getSession(false), actionPath, newActionPath);
     setFlashFalg = false;
   }
   render = renderFactory.getRedirectRender(url, withQueryString);
 }