Examples of ErrorPage


Examples of org.apache.tomcat.util.descriptor.web.ErrorPage

    @Override
    public ErrorPage[] findErrorPages() {

        synchronized(exceptionPages) {
            synchronized(statusPages) {
                ErrorPage results1[] = new ErrorPage[exceptionPages.size()];
                results1 = exceptionPages.values().toArray(results1);
                ErrorPage results2[] = new ErrorPage[statusPages.size()];
                results2 = statusPages.values().toArray(results2);
                ErrorPage results[] =
                    new ErrorPage[results1.length + results2.length];
                for (int i = 0; i < results1.length; i++)
                    results[i] = results1[i];
                for (int i = results1.length; i < results.length; i++)
                    results[i] = results2[i - results1.length];
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.ErrorPage

     * @param status HTTP status code to look up
     */
    @Override
    public String findStatusPage(int status) {

        ErrorPage errorPage = statusPages.get(Integer.valueOf(status));
        if (errorPage!=null) {
            return errorPage.getLocation();
        }
        return null;

    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.ErrorPage

        context.addServletMapping("/bug56568", "Bug56568Servlet");

        // Configure a JSP page to handle the 500 error response
        // The JSP page will see the same method as the original request (PUT)
        // PUT requests are normally blocked for JSPs
        ErrorPage ep = new ErrorPage();
        ep.setErrorCode(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        ep.setLocation("/WEB-INF/jsp/error.jsp");
        context.addErrorPage(ep);

        tomcat.start();

        int rc = methodUrl("http://localhost:" + getPort() + "/test/bug56568",
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.ErrorPage

    @Override
    public ErrorPage[] findErrorPages() {

        synchronized(exceptionPages) {
            synchronized(statusPages) {
                ErrorPage results1[] = new ErrorPage[exceptionPages.size()];
                results1 = exceptionPages.values().toArray(results1);
                ErrorPage results2[] = new ErrorPage[statusPages.size()];
                results2 = statusPages.values().toArray(results2);
                ErrorPage results[] =
                    new ErrorPage[results1.length + results2.length];
                for (int i = 0; i < results1.length; i++)
                    results[i] = results1[i];
                for (int i = results1.length; i < results.length; i++)
                    results[i] = results2[i - results1.length];
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.ErrorPage

     * @param status HTTP status code to look up
     */
    @Override
    public String findStatusPage(int status) {

        ErrorPage errorPage = statusPages.get(Integer.valueOf(status));
        if (errorPage!=null) {
            return errorPage.getLocation();
        }
        return null;

    }
View Full Code Here

Examples of org.cyclop.web.pages.error.ErrorPage

  private void setupErrorPage() {
    getRequestCycleListeners().add(new AbstractRequestCycleListener() {
      @Override
      public IRequestHandler onException(RequestCycle cycle, Exception ex) {
        return new RenderPageRequestHandler(new PageProvider(new ErrorPage(ex)));
      }
    });
  }
View Full Code Here

Examples of org.springframework.boot.context.embedded.ErrorPage

    @Configuration
    public static class ErrorConfig implements EmbeddedServletContainerCustomizer {

        @Override
        public void customize(ConfigurableEmbeddedServletContainer factory) {
            factory.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/404"));
            factory.addErrorPages(new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/500"));
        }
View Full Code Here

Examples of org.xadoop.servlet.pages.ErrorPage

    actionMap.put(LogoutAction.ACTIONNAME, new LogoutAction());
    actionMap.put(XQueryMRAction.ACTIONNAME, new XQueryMRAction());
    context.setAttribute(XadoopConstants.CTX_ACTIONMAP, actionMap);

    // page map
    AbstractPage errorPage = new ErrorPage("");
    AbstractPage homePage = new HomePage();
    AbstractPage loginPage = new LoginPage();
    AbstractPage xquerymroriginalPage = new XQueryMROriginalPage();
    AbstractPage xquerymrsaxonPage = new XQueryMRSaxonPage();
    AbstractPage xquerymrzorbaPage = new XQueryMRZorbaPage();
View Full Code Here

Examples of railo.runtime.err.ErrorPage

         
      int statusCode=getStatusCode(pe);
     
      if(getConfig().getErrorStatusCode())rsp.setStatus(statusCode);
     
      ErrorPage ep=errorPagePool.getErrorPage(pe,ErrorPageImpl.TYPE_EXCEPTION);
     
      ExceptionHandler.printStackTrace(this,pe);
      ExceptionHandler.log(getConfig(),pe);

      // error page exception
      if(ep!=null) {
        try {
          Struct sct=pe.getErrorBlock(this,ep);
          variablesScope().setEL(KeyConstants._error,sct);
          variablesScope().setEL(KeyConstants._cferror,sct);
         
          doInclude(ep.getTemplate());
          return;
        } catch (Throwable t) {
          if(Abort.isSilentAbort(t)) return;
          pe=Caster.toPageException(t);
        }
      }
     
      // error page request
      ep=errorPagePool.getErrorPage(pe,ErrorPageImpl.TYPE_REQUEST);
      if(ep!=null) {
        PageSource ps = ep.getTemplate();
        if(ps.physcalExists()){
          Resource res = ps.getResource();
          try {
            String content = IOUtil.toString(res, getConfig().getTemplateCharset());
            Struct sct=pe.getErrorBlock(this,ep);
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.