Modifier and Type | Method and Description |
---|---|
static <T> T |
findAncestorWithType(Tag from,
Class<T> type)
Finds an ancestor tag of the given type.
|
static void |
setScopedAttribute(PageContext pageContext,
String attribute,
Object value,
String scope)
Set an attribute with the given scope.
|
public static void setScopedAttribute(PageContext pageContext, String attribute, Object value, String scope) throws JspException
pageContext
- PageContext
of the invoking tagattribute
- Attribute namevalue
- Value of that attributescope
- Scope to be used. null
means page scope.JspException
- if the scope was unknownpublic static <T> T findAncestorWithType(Tag from, Class<T> type)
T
- Type to find and returnfrom
- Tag to start fromtype
- Type to findnull
if none was found.Copyright © 2010–2017. All rights reserved.