View | Details | Raw Unified | Return to bug 36637
Collapse All | Expand All

(-)XPathUtil.java-2005-09-13 (-10 / +13 lines)
Lines 97-112 Link Here
97
            variableVector.addElement( new QName(null, varName ) );
97
            variableVector.addElement( new QName(null, varName ) );
98
            globalVarSize++;
98
            globalVarSize++;
99
        }
99
        }
100
        enum_ = pageContext.getAttributeNamesInScope( 
100
	if ( pageContext.getSession() != null ) {
101
            PageContext.SESSION_SCOPE );
101
            enum_ = pageContext.getAttributeNamesInScope( 
102
        while ( enum_.hasMoreElements() ) {
102
                PageContext.SESSION_SCOPE );
103
            String varName = (String)enum_.nextElement();
103
            while ( enum_.hasMoreElements() ) {
104
            QName varQName = new QName ( SESSION_NS_URL, SESSION_P,varName); 
104
                String varName = (String)enum_.nextElement();
105
            //Adding both namespace qualified QName and just localName
105
                QName varQName = 
106
            variableVector.addElement( varQName );
106
                  new QName ( SESSION_NS_URL, SESSION_P,varName); 
107
            globalVarSize++;
107
                //Adding both namespace qualified QName and just localName
108
            variableVector.addElement( new QName(null, varName ) );
108
                variableVector.addElement( varQName );
109
            globalVarSize++;
109
                globalVarSize++;
110
                variableVector.addElement( new QName(null, varName ) );
111
                globalVarSize++;
112
            }
110
        }
113
        }
111
        enum_ = pageContext.getAttributeNamesInScope( 
114
        enum_ = pageContext.getAttributeNamesInScope( 
112
            PageContext.APPLICATION_SCOPE );
115
            PageContext.APPLICATION_SCOPE );

Return to bug 36637