Examples of CmsObject


Examples of org.opencms.file.CmsObject

  @Override
  public int doEndTag() throws JspException {
    try {
      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.