Examples of PageServletException


Examples of railo.runtime.exp.PageServletException

    try{
      pc.getHttpServletRequest().setAttribute("railo.forward.request_uri", realPath);
     
          RequestDispatcher disp = context.getRequestDispatcher(realPath);
          if(disp==null)
          throw new PageServletException(new ApplicationException("Page "+realPath+" not found"));
           
          //populateRequestAttributes();
          disp.forward(removeWrap(pc.getHttpServletRequest()),pc.getHttpServletResponse());
    }
        finally{
View Full Code Here

Examples of railo.runtime.exp.PageServletException

        }
  }

  private static RequestDispatcher getRequestDispatcher(PageContext pc,String realPath) throws PageServletException {
    RequestDispatcher disp = pc.getServletContext().getRequestDispatcher(realPath);
      if(disp==null) throw new PageServletException(new ApplicationException("Page "+realPath+" not found"));
      return disp;
  }
View Full Code Here

Examples of railo.runtime.exp.PageServletException

    }
        catch (Throwable e) {
          if(e instanceof InvocationTargetException)
            e= ((InvocationTargetException)e).getTargetException();
          if(e instanceof PageException)
              throw new PageServletException((PageException)e);
          throw new ServletException(e);
    }
    }
View Full Code Here

Examples of railo.runtime.exp.PageServletException

    public void _doCFCCatch(Throwable t, String source) throws PageException {
      writeEnclosingWriter();
     
      // remove PageServletException wrap
      if(t instanceof PageServletException) {
        PageServletException pse=(PageServletException)t;
        t=pse.getPageException();
    }
     
      // abort
      try {
      if(railo.runtime.exp.Abort.isAbort(t)){
View Full Code Here

Examples of railo.runtime.exp.PageServletException

  public void include(PageSource ps) throws ServletException  {
    try {
      doInclude(ps);
    } catch (PageException pe) {
      throw new PageServletException(pe);
    }
  }
View Full Code Here

Examples of railo.runtime.exp.PageServletException

public abstract class BodyTagTryCatchFinallyImpl extends BodyTagImpl implements TryCatchFinally{

  @Override
  public void doCatch(Throwable t) throws Throwable {
    if(t instanceof PageServletException) {
        PageServletException pse=(PageServletException)t;
        t=pse.getPageException();
    }
      if(bodyContent!=null) {
      if(t instanceof AbortException){
        bodyContent.writeOut(bodyContent.getEnclosingWriter());
      }
View Full Code Here

Examples of railo.runtime.exp.PageServletException

    /**
     * @see javax.servlet.jsp.tagext.TryCatchFinally#doCatch(java.lang.Throwable)
     */
    public void doCatch(Throwable t) throws Throwable {
        if(t instanceof PageServletException) {
            PageServletException pse=(PageServletException)t;
            t=pse.getPageException();
        }
        if(bodyContent!=null) {
            Excepton util = CFMLEngineFactory.getInstance().getExceptionUtil();
            if(util.isOfType(Excepton.TYPE_ABORT,t)) {
                bodyContent.writeOut(bodyContent.getEnclosingWriter());
View Full Code Here

Examples of railo.runtime.exp.PageServletException

       
        // static path is not allowed
        if(countExistingContextes>1 && strConfig!=null && strConfig.indexOf('{')==-1){
          String text="static path ["+strConfig+"] for servlet init param [railo-web-directory] is not allowed, path must use a web-context specific placeholder.";
          System.err.println(text);
          throw new PageServletException(new ApplicationException(text));
        }
        strConfig=SystemUtil.parsePlaceHolder(strConfig,sc,configServer.getLabels());
       
       
       
        ResourceProvider frp = ResourcesImpl.getFileResourceProvider();
        Resource root = frp.getResource(ReqRspUtil.getRootPath(sc));
        Resource configDir=ResourceUtil.createResource(root.getRealResource(strConfig), FileUtil.LEVEL_PARENT_FILE,FileUtil.TYPE_DIR);
       
        if(configDir==null) {
            configDir=ResourceUtil.createResource(frp.getResource(strConfig), FileUtil.LEVEL_GRAND_PARENT_FILE,FileUtil.TYPE_DIR);
        }
        if(configDir==null) throw new PageServletException(new ApplicationException("path ["+strConfig+"] is invalid"));
        if(!configDir.exists()){
          try {
        configDir.createDirectory(true);
      }
          catch (IOException e) {}
View Full Code Here

Examples of railo.runtime.exp.PageServletException

          */
         
          pc.execute(pc.getHttpServletRequest().getServletPath(),false);
        }
        catch (PageException pe) {
      throw new PageServletException(pe);
    }
        finally {
          queue.exit(pc);
            factory.releaseRailoPageContext(pc);
            FDControllerFactory.notifyPageComplete();
View Full Code Here

Examples of railo.runtime.exp.PageServletException

        queue.enter(pc);
        try {
          pc.executeRest(pc.getHttpServletRequest().getServletPath(),false);
        }
        catch (PageException pe) {
      throw new PageServletException(pe);
    }
        finally {
          queue.exit(pc);
            factory.releaseRailoPageContext(pc);
            FDControllerFactory.notifyPageComplete();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.