Package org.opencms.file

Examples of org.opencms.file.CmsObject.readFile()


      CmsJspActionElement cms = getCmsActionElement();
      CmsFlexController controller = CmsFlexController.getController(cms.getRequest());
      CmsObject cmso = cms.getCmsObject();
     
      uri = CmsLinkManager.getAbsoluteUri(uri, controller.getCurrentRequest().getElementUri());
      CmsFile file = cmso.readFile(uri);
      String contents = new String(file.getContents(), encoding);
      if (var != null) {
        pageContext.setAttribute(var, contents, scope);
      } else {
        pageContext.getOut().write(contents);
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.