textTagLib=ConfigWebUtil.replacePlaceholder(textTagLib, config);
// File TagLib
String ext=ResourceUtil.getExtension(textTagLib,null);
boolean hasTldExtension="tld".equalsIgnoreCase(ext);
Resource absFile=config.getResource(textTagLib);
// TLD
if(absFile.isFile()) return _executeTLD(config,absFile,nameSpace,nameSpaceSeparator,cfml);
// CTD
//else if(absFile.isDirectory()) return _executeCTD(absFile,textPrefix);
// Second Change
if(textTagLib.startsWith("/")){
//config.getPhysical(textTagLib);
PageSource ps = ((ConfigImpl)config).getPageSourceExisting(null,null,textTagLib,false,false,true,false);
//config.getConfigDir()
if(ps!=null) {
if(ps.physcalExists()) {
Resource file = ps.getPhyscalFile();
// TLD
if(file.isFile()) return _executeTLD(config,file,nameSpace,nameSpaceSeparator,cfml);
}
// CTD
if(!hasTldExtension)return _executeCTD(textTagLib,nameSpace,nameSpaceSeparator);
}
}
else {
Resource sourceFile=cfml.getSourceFile().getPhyscalFile();
if(sourceFile!=null) {
Resource file = sourceFile.getParentResource().getRealResource(textTagLib);
// TLD
if(file.isFile()) return _executeTLD(config,file,nameSpace,nameSpaceSeparator,cfml);
// CTD
if(!hasTldExtension)return _executeCTD(textTagLib,nameSpace,nameSpaceSeparator);
}
}
throw new TemplateException(cfml,"invalid definition of the attribute taglib ["+textTagLib+"]");