Example usage for javax.servlet.jsp.tagext VariableInfo getScope

List of usage examples for javax.servlet.jsp.tagext VariableInfo getScope

Introduction

In this page you can find the example usage for javax.servlet.jsp.tagext VariableInfo getScope.

Prototype

public int getScope() 

Source Link

Document

Returns the lexical scope of the variable.

Usage

From source file:org.seasar.mayaa.impl.engine.processor.JspProcessor.java

protected void operateNestedVariables(NestedVariableOperator operator) {
    if (Boolean.FALSE.equals(_nestedVariableExists) == false) {
        TLDScriptingVariableInfo variableInfo = getTLDScriptingVariableInfo();
        if (variableInfo != null) {
            AttributeScope pageScope = CycleUtil.getServiceCycle().getPageScope();
            boolean firstHit = true;
            for (Iterator it = variableInfo.variableInfos(); it.hasNext();) {
                VariableInfo info = (VariableInfo) it.next();
                if (info.getScope() == VariableInfo.NESTED) {
                    _nestedVariableExists = Boolean.TRUE;
                    operator.operate(pageScope, info, firstHit);
                    firstHit = false;//from  www  .  ja v a 2s  . c o m
                }
            }
        }
        if (_nestedVariableExists == null) {
            _nestedVariableExists = Boolean.FALSE;
        }
    }
}