*/
private void evalDeferredZScripts(Interpreter ip, String zslang) {
if (_zsDeferred != null) {
for (Iterator it = _zsDeferred.iterator(); it.hasNext();) {
final Object[] zsInfo = (Object[])it.next();
final ZScript zscript = (ZScript)zsInfo[1];
String targetlang = zscript.getLanguage();
if (targetlang == null)
targetlang = _zslang; //use default
if (targetlang.equalsIgnoreCase(zslang)) { //case insensitive
it.remove(); //done
final Component parent = (Component)zsInfo[0];
if ((parent == null || parent.getPage() == this)
&& isEffective(zscript, parent)) {
final Scope scope =
Scopes.beforeInterpret(parent != null ? (Scope)parent: this);
try {
ip.interpret(zscript.getContent(this, parent), scope);
} finally {
Scopes.afterInterpret();
}
}
}