jodd.servlet.tag
Class TagUtil

java.lang.Object
  extended by jodd.servlet.tag.TagUtil

public class TagUtil
extends java.lang.Object

Various tag utilities.


Constructor Summary
TagUtil()
           
 
Method Summary
static void invokeBody(javax.servlet.jsp.tagext.JspFragment body)
          Invokes tag body.
static void invokeBody(javax.servlet.jsp.tagext.JspFragment body, java.io.Writer writer)
          Invokes tag body to provided writer.
static void removeScopeAttribute(java.lang.String name, java.lang.String scope, javax.servlet.jsp.PageContext pageContext)
          Removes scope attribute.
static char[] renderBody(javax.servlet.jsp.tagext.JspFragment body)
          Renders tag body to char array.
static java.lang.String renderBodyToString(javax.servlet.jsp.tagext.JspFragment body)
          Renders tag body to string.
static void setScopeAttribute(java.lang.String name, java.lang.Object value, java.lang.String scope, javax.servlet.jsp.PageContext pageContext)
          Sets scope attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagUtil

public TagUtil()
Method Detail

invokeBody

public static void invokeBody(javax.servlet.jsp.tagext.JspFragment body)
                       throws javax.servlet.jsp.JspException
Invokes tag body.

Throws:
javax.servlet.jsp.JspException

invokeBody

public static void invokeBody(javax.servlet.jsp.tagext.JspFragment body,
                              java.io.Writer writer)
                       throws javax.servlet.jsp.JspException
Invokes tag body to provided writer.

Throws:
javax.servlet.jsp.JspException

renderBody

public static char[] renderBody(javax.servlet.jsp.tagext.JspFragment body)
                         throws javax.servlet.jsp.JspException
Renders tag body to char array.

Throws:
javax.servlet.jsp.JspException

renderBodyToString

public static java.lang.String renderBodyToString(javax.servlet.jsp.tagext.JspFragment body)
                                           throws javax.servlet.jsp.JspException
Renders tag body to string.

Throws:
javax.servlet.jsp.JspException
See Also:
renderBody(javax.servlet.jsp.tagext.JspFragment)

setScopeAttribute

public static void setScopeAttribute(java.lang.String name,
                                     java.lang.Object value,
                                     java.lang.String scope,
                                     javax.servlet.jsp.PageContext pageContext)
                              throws javax.servlet.jsp.JspException
Sets scope attribute.

Throws:
javax.servlet.jsp.JspException

removeScopeAttribute

public static void removeScopeAttribute(java.lang.String name,
                                        java.lang.String scope,
                                        javax.servlet.jsp.PageContext pageContext)
                                 throws javax.servlet.jsp.JspException
Removes scope attribute.

Throws:
javax.servlet.jsp.JspException


Copyright © 2003-2012 Jodd Team