Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.RedirectResolution


     * Cancels the change
     * @return a redirect resolution to the preferences page
     */
    @DontBind
    public Resolution cancel() {
        return new RedirectResolution(PreferencesActionBean.class);
    }
View Full Code Here


     * Changes the preferred time zone
     * @return a redirect resolution to the preferences page, with a success message
     */
    public Resolution change() {
        doChange();
        return new RedirectResolution(PreferencesActionBean.class);
    }
View Full Code Here

     * Cancels the change
     * @return a redirect resolution to the preferences page
     */
    @DontBind
    public Resolution cancel() {
        return new RedirectResolution(PreferencesActionBean.class);
    }
View Full Code Here

  public Resolution send() { 
    try {
      connect();
      Messages.inquire(getSession(), getName(), getEmail(), uuid, getSubject(), getText());
      disconnect();
      return new RedirectResolution("/acknowledge.jsp");
    } catch (Exception e) {
      Log.out.error(e.getClass().getName()+" "+e.getMessage(), e);
      return new RedirectResolution("/error.jsp?e=messagingexception");
    } finally {
      close();
    }
  }
View Full Code Here

    } catch (Exception xcpt) {
      Log.out.error("FastEditBillNote.write() "+sNickN+" "+xcpt.getClass()+" "+xcpt.getMessage());
    } finally {
      close();
    }
    return new RedirectResolution("/FastEditBillNote.action?id="+getId());
  }
View Full Code Here

    return new RedirectResolution("/FastEditBillNote.action?id="+getId());
  }
 
  public Resolution save() {
    write(false);
    return new RedirectResolution("/FastEditBillNote.action?id="+getId());
  }
View Full Code Here

    return new RedirectResolution("/FastEditBillNote.action?id="+getId());
  }

  public Resolution settle() {
    write(true);
    return new RedirectResolution(ListPendingBillNotes.class);
  }
View Full Code Here

        Log.out.info("Added "+selectedProduct.getCredits().toString()+" credits to customer "+getSessionAttribute("customer_acount"));
        DAO.log(oSes, cacc.getDocument(), CustomerAccount.class, "UPDATE CREDITS", AtrilEvent.Level.INFO, cacc.getDocument().id()+";"+cacc.get("credits_left"));
       
        disconnect();
        LoginInterceptor.expire(getSessionAttribute("nickname"), getSessionAttribute("password"));
        return new RedirectResolution(CaptureInvoice.class);
      } catch (Exception e) {
          String sStackTrace = "";
          try { sStackTrace = StackTraceUtil.getStackTrace(e); } catch (Exception ignore) { }
        Log.out.error(e.getClass().getName()+" "+e.getMessage()+"\n"+sStackTrace);
        getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage(), order));
        return new RedirectResolution(BuyCredits.class);
        } finally { close(); }
  } 
View Full Code Here

  }
 
  @DefaultHandler
  public Resolution form() {
    Log.out.debug("UploadBillNote.form()");
    return new RedirectResolution(FORM);
  }
View Full Code Here

    return new ForwardResolution(sFwd);
  }

  @DontValidate
  public Resolution cancel() {
    return new RedirectResolution(CaptureBillNote.class);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.action.RedirectResolution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.