Package railo.runtime.tag

Examples of railo.runtime.tag.CFTag


  public static Struct call(PageContext pc , String tagName) throws PageException {
    return call(pc,tagName,-1);
  }
 
    public static Struct call(PageContext pc , String tagName, double minLevel) throws PageException {
      CFTag tag=getParentCFTag(pc.getCurrentTag(), tagName, (int)minLevel);
        if(tag==null) throw new ExpressionException("can't find base tag with name ["+tagName+"]");
        return tag.getVariablesScope();
  }
View Full Code Here


  }
   
    public synchronized static CFTag getParentCFTag(Tag tag,String trgTagName, int minLevel) {
        String pureName=trgTagName;
        int level=0;
        CFTag cfTag;
        while(tag!=null) {
          if(tag instanceof CFTag && minLevel<=(level++)) {
              cfTag=(CFTag)tag;
                if(cfTag instanceof CFTagCore){
             
                  CFTagCore tc=(CFTagCore) cfTag;
                 
                  if((tc.getName()+"").equalsIgnoreCase(pureName))
                    return cfTag;
                  if(StringUtil.startsWithIgnoreCase(pureName,"cf")) {
                        pureName=pureName.substring(2);
                    }
                  if((tc.getName()+"").equalsIgnoreCase(pureName))
                    return cfTag;
                }
                else if( cfTag.getAppendix().equalsIgnoreCase(pureName)) {
                    return cfTag;
                }
                else if(StringUtil.startsWithIgnoreCase(pureName,"cf_")) {
                    pureName=pureName.substring(3);
                    if(cfTag.getAppendix().equalsIgnoreCase(pureName))
                        return cfTag;
                }
            }
          tag=tag.getParent();
        }
View Full Code Here

TOP

Related Classes of railo.runtime.tag.CFTag

Copyright © 2018 www.massapicom. 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.