Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.SimpleMessage


        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


        if (getCapturedCount()>0)
          ThumbnailCreator.createThumbnailFor(getId(), getCapturedPage1());       
        sFwd = "EditBillNote.action?id="+tckt.id();
      } catch (IllegalStateException e) {
        Log.out.error("BillNoteUpload.upload() "+e.getClass().getName()+" "+e.getMessage(), e);
        getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage(), items));
        sFwd = "error.jsp?e=couldnotloadticket";
      } finally { close(); }
     
    } else {
      Log.out.debug("UploadBillNote no items found");
View Full Code Here

      disconnect();
      return new RedirectResolution(ListNewBillNotes.class);
      } catch (StorageException e) {
      setParam("id", getId());
        Log.out.error("EditBillNote.save() "+e.getClass().getName()+" "+e.getMessage());
      getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage()));
      return new RedirectResolution(CaptureBillNote.class);
      } finally { close(); }
    }
View Full Code Here

      tckt.reopen(getSession(), getSessionAttribute("user_uuid"));
      disconnect();
      } catch (StorageException e) {
      setParam("id", getId());
        Log.out.error("EditBillNote.reopen() "+e.getClass().getName()+" "+e.getMessage());
      getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage()));
      } finally { close(); }
      return new RedirectResolution("/EditBillNote.action?id="+getId());
    }
View Full Code Here

         disconnect();
      }
      return new ForwardResolution(FORM);
    } catch (Exception e) {
      Log.out.error("CaptureBillNote.form() "+e.getClass().getName()+" "+e.getMessage());
      getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage()));
      return new RedirectResolution(CaptureBillNote.class);
    } finally { close(); }
  }
View Full Code Here

            commit();
            disconnect();
            return new ForwardResolution(path);
        } catch (Exception e) {
            Log.out.error("EngageCredit.save() "+e.getClass().getName()+" "+e.getMessage(), e);
            getContext().getMessages().add(new SimpleMessage("ERROR " + e.getMessage(), order));
            return new ForwardResolution("/WEB-INF/jsp/engagecredit.jsp");
        } finally {
            close();
        }
    }
View Full Code Here

        if (capturedCount>0) {
          ThumbnailCreator.createThumbnailFor(capureddocid, capuredpage1);
        }
      } catch (Exception e) {
        Log.out.error("InvoiceUpload.upload() "+e.getClass().getName()+" "+e.getMessage(), e);
        getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage(), items));     
      } finally { close(); }
     
    } else {
      Log.out.debug("InvoiceUpload no items found");
    }
View Full Code Here

    Log.out.debug("PROFILING: Disconnection time "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
   
    return new RedirectResolution(SignUpConfirmation.class);
   
    } catch (Exception e) {
    getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage(), user));     
    return new RedirectResolution(SignUpForm.class);
    } finally { close(); }
  }
View Full Code Here

  protected static final String ERROR = "/WEB-INF/jsp/common/Error.jsp";

  protected transient ActionBeanContext context;

  protected void setMessage(String value) {
    context.getMessages().add(new SimpleMessage(value));
  }
View Full Code Here

    public Resolution deleteDirectory() {
        Directory dirToDelete = directoriesDao.getDirectory(directoryId);
        Integer deleted = directoriesDao.deleteDirectoriesAndMoveTheses(directoryId);
        if (deleted == 1) {
            getContext().getMessages().add(new SimpleMessage("Adres�� \"{0}\" byl smaz�n", dirToDelete.getName()));
        }
        return new RedirectResolution(BrowseThesesActionBean.class).addParameter("directoryId", dirToDelete.getParentId());
    }
View Full Code Here

TOP

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

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.