Java Code Examples for javax.servlet.jsp.PageContext#getAttributeNamesInScope()
The following examples show how to use
javax.servlet.jsp.PageContext#getAttributeNamesInScope() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImplicitObjectELResolver.java From lams with GNU General Public License v2.0 | 5 votes |
/** * * Creates the Map that "wraps" page-scoped attributes **/ public static Map createPageScopeMap (PageContext pContext) { final PageContext context = pContext; return new EnumeratedMap () { public Enumeration enumerateKeys () { return context.getAttributeNamesInScope (PageContext.PAGE_SCOPE); } public Object getValue (Object pKey) { if (pKey instanceof String) { return context.getAttribute ((String) pKey, PageContext.PAGE_SCOPE); } else { return null; } } public boolean isMutable () { return true; } }; }
Example 2
Source File: ImplicitObjectELResolver.java From lams with GNU General Public License v2.0 | 5 votes |
/** * * Creates the Map that "wraps" request-scoped attributes **/ public static Map createRequestScopeMap (PageContext pContext) { final PageContext context = pContext; return new EnumeratedMap () { public Enumeration enumerateKeys () { return context.getAttributeNamesInScope (PageContext.REQUEST_SCOPE); } public Object getValue (Object pKey) { if (pKey instanceof String) { return context.getAttribute ((String) pKey, PageContext.REQUEST_SCOPE); } else { return null; } } public boolean isMutable () { return true; } }; }
Example 3
Source File: ImplicitObjectELResolver.java From lams with GNU General Public License v2.0 | 5 votes |
/** * * Creates the Map that "wraps" session-scoped attributes **/ public static Map createSessionScopeMap (PageContext pContext) { final PageContext context = pContext; return new EnumeratedMap () { public Enumeration enumerateKeys () { return context.getAttributeNamesInScope (PageContext.SESSION_SCOPE); } public Object getValue (Object pKey) { if (pKey instanceof String) { return context.getAttribute ((String) pKey, PageContext.SESSION_SCOPE); } else { return null; } } public boolean isMutable () { return true; } }; }
Example 4
Source File: ImplicitObjectELResolver.java From lams with GNU General Public License v2.0 | 5 votes |
/** * * Creates the Map that "wraps" application-scoped attributes **/ public static Map createApplicationScopeMap (PageContext pContext) { final PageContext context = pContext; return new EnumeratedMap () { public Enumeration enumerateKeys () { return context.getAttributeNamesInScope (PageContext.APPLICATION_SCOPE); } public Object getValue (Object pKey) { if (pKey instanceof String) { return context.getAttribute ((String) pKey, PageContext.APPLICATION_SCOPE); } else { return null; } } public boolean isMutable () { return true; } }; }