public final class JspUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addDeferredChild(javax.servlet.jsp.tagext.TagSupport parentTag,
javax.servlet.jsp.tagext.Tag childTag)
Simulates adding the given child Tag to the given parent Tag.
|
static boolean |
isJustHiddenFields(CharSequence html) |
static void |
setBodyContent(javax.servlet.jsp.tagext.BodyTag tag,
String content) |
static String |
writeTag(javax.servlet.jsp.PageContext context,
javax.servlet.jsp.tagext.Tag tag,
javax.servlet.jsp.tagext.Tag parentTag)
Writes the given Tag to a String (not its usual pageContext.getOut).
|
public static boolean isJustHiddenFields(CharSequence html)
public static String writeTag(javax.servlet.jsp.PageContext context, javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static void addDeferredChild(javax.servlet.jsp.tagext.TagSupport parentTag, javax.servlet.jsp.tagext.Tag childTag)
Whilst the JSP component model provides findAncestorWithClass
to allow Tags to
find their parent, there is no mechanism for programmatically adding children to a Tag. This
is a problem for Metawidget, which needs to be able to build Tags, separately process them,
and then render them.
This method provides a way to defer the rendering of a child, to give us chance to process it.
public static void setBodyContent(javax.servlet.jsp.tagext.BodyTag tag, String content)
Copyright © 2015. All Rights Reserved.