|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sf.charttaglibs.utils.TagUtils
Provides helper methods for JSP tags.
| Field Summary | |
private static TagUtils |
instance
The Singleton instance. |
private static Message |
messages
The message resources for this package. |
private static java.util.Map |
scopes
Maps lowercase JSP scope names to their PageContext integer constant values. |
| Constructor Summary | |
protected |
TagUtils()
Constructor for TagUtils. |
| Method Summary | |
static TagUtils |
getInstance()
Returns the Singleton instance of TagUtils. |
int |
getScope(java.lang.String scopeName)
Converts the scope name into its corresponding PageContext constant value. |
java.lang.Object |
lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String scopeName)
Locate and return the specified bean, from an optionally specified scope, in the specified page context. |
java.lang.Object |
lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String property,
java.lang.String scope)
Locate and return the specified property of the specified bean, from an optionally specified scope, in the specified page context. |
void |
write(javax.servlet.jsp.PageContext pageContext,
java.lang.String text)
Write the specified text as the response to the writer associated with this page. |
void |
writePrevious(javax.servlet.jsp.PageContext pageContext,
java.lang.String text)
Write the specified text as the response to the writer associated with the body content for the tag within which we are currently nested. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final TagUtils instance
private static final Message messages
private static final java.util.Map scopes
| Constructor Detail |
protected TagUtils()
| Method Detail |
public static TagUtils getInstance()
public int getScope(java.lang.String scopeName)
throws javax.servlet.jsp.JspException
scopeName - Can be "page", "request", "session", or "application" in any
case.
javax.servlet.jsp.JspException - if the scopeName is not a valid name.
public java.lang.Object lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String scopeName)
throws javax.servlet.jsp.JspException
null instead. If an exception is thrown, it will
have already been saved via a call to saveException().
pageContext - Page context to be searchedname - Name of the bean to be retrievedscopeName - Scope to be searched (page, request, session, application)
or null to use findAttribute() instead
javax.servlet.jsp.JspException - if an invalid scope name
is requested
public java.lang.Object lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String property,
java.lang.String scope)
throws javax.servlet.jsp.JspException
saveException().
pageContext - Page context to be searchedname - Name of the bean to be retrievedproperty - Name of the property to be retrieved, or
null to retrieve the bean itselfscope - Scope to be searched (page, request, session, application)
or null to use findAttribute() instead
javax.servlet.jsp.JspException - if an invalid scope name
is requested
javax.servlet.jsp.JspException - if the specified bean is not found
javax.servlet.jsp.JspException - if accessing this property causes an
IllegalAccessException, IllegalArgumentException,
InvocationTargetException, or NoSuchMethodException
public void write(javax.servlet.jsp.PageContext pageContext,
java.lang.String text)
throws javax.servlet.jsp.JspException
doAfterBody() method of a custom tag class that
implements BodyTag, you should be calling
writePrevious() instead.
pageContext - The PageContext object for this pagetext - The text to be written
javax.servlet.jsp.JspException - if an input/output error occurs (already saved)
public void writePrevious(javax.servlet.jsp.PageContext pageContext,
java.lang.String text)
throws javax.servlet.jsp.JspException
pageContext - The PageContext object for this pagetext - The text to be written
javax.servlet.jsp.JspException - if an input/output error occurs (already saved)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||