Examples of renderError()


Examples of com.jfinal.core.Controller.renderError()

        String userID = controller.getSessionAttr("userID").toString();
        if(StringKit.notBlank(userID) && userID.equals(controller.getPara(0, "0") + "")){
            ai.invoke();
        }else{
            controller.setAttr("msg", "只有该登录用户本人才有权操作");
            controller.renderError(500);
        }
    }
}
View Full Code Here

Examples of org.fundacionctic.su4j.endpoint.SparqlEndpoint.renderError()

      try {
        logger.info("Executing SPARQL query...");
        endpoint.query();
      } catch (Exception e) {
        logger.error(e.getMessage());
        endpoint.renderError(e);
      }
    } else {
      logger.info("Showing SPARQL form");
      endpoint.renderForm("SU4J SPARQL end-point example", "SELECT * WHERE { ?s ?p ?o }");
    }
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.