private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private Object doGetAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } return attributes.get(name); }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private int doGetAttributeScope(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } if (attributes.get(name) != null) return PAGE_SCOPE; if (request.getAttribute(name) != null) return REQUEST_SCOPE; if (session != null) { try { if (session.getAttribute(name) != null) return SESSION_SCOPE; } catch (IllegalStateException ex) { // Session has been invalidated. // Ignore and fall through to application scope. } } if (context.getAttribute(name) != null) return APPLICATION_SCOPE; return 0; }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private void doSetAttribute(String name, Object attribute){ if (attribute != null) { if (!isNametableInitialized) { initializePageScopeNameTable(); } attributes.put(name, attribute); } else { removeAttribute(name, PAGE_SCOPE); } }
private int doGetAttributeScope(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } if (attributes.get(name) != null) return PAGE_SCOPE; if (request.getAttribute(name) != null) return REQUEST_SCOPE; if (session != null) { try { if (session.getAttribute(name) != null) return SESSION_SCOPE; } catch (IllegalStateException ex) { // Session has been invalidated. // Ignore and fall through to application scope. } } if (context.getAttribute(name) != null) return APPLICATION_SCOPE; return 0; }
private Object doFindAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } Object o = attributes.get(name); if (o != null) return o; o = request.getAttribute(name); if (o != null) return o; if (session != null) { try { o = session.getAttribute(name); } catch (IllegalStateException ex) { // Session has been invalidated. // Ignore and fall through to application scope. } if (o != null) return o; } return context.getAttribute(name); }
private Object doFindAttribute(String name){ if (!isNametableInitialized) { initializePageScopeNameTable(); } Object o = attributes.get(name); if (o != null) return o; o = request.getAttribute(name); if (o != null) return o; if (session != null) { try { o = session.getAttribute(name); } catch (IllegalStateException ex) { // Session has been invalidated. // Ignore and fall through to application scope. } if (o != null) return o; } return context.getAttribute(name); }
private Enumeration<String> doGetAttributeNamesInScope(int scope){ switch (scope) { case PAGE_SCOPE: if (!isNametableInitialized) { initializePageScopeNameTable(); } return Collections.enumeration(attributes.keySet()); case REQUEST_SCOPE: return request.getAttributeNames(); case SESSION_SCOPE: if (session == null) { throw new IllegalStateException( Localizer.getMessage("jsp.error.page.noSession")); } return session.getAttributeNames(); case APPLICATION_SCOPE: return context.getAttributeNames(); default: throw new IllegalArgumentException("Invalid scope"); } }
private Enumeration<String> doGetAttributeNamesInScope(int scope){ switch (scope) { case PAGE_SCOPE: if (!isNametableInitialized) { initializePageScopeNameTable(); } return Collections.enumeration(attributes.keySet()); case REQUEST_SCOPE: return request.getAttributeNames(); case SESSION_SCOPE: if (session == null) { throw new IllegalStateException( Localizer.getMessage("jsp.error.page.noSession")); } return session.getAttributeNames(); case APPLICATION_SCOPE: return context.getAttributeNames(); default: throw new IllegalArgumentException("Invalid scope"); } }