public class JspUtils extends Object
Constructor and Description |
---|
JspUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
executeSimpleTag(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node,
javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.SimpleTag tag)
Executes a
SimpleTag . |
static void |
executeTag(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node,
javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag tag)
Executes a
Tag . |
static javax.servlet.jsp.tagext.JspTag |
getLatestJspTag(org.apache.velocity.context.Context context)
Returns the latest tag encountered.
|
static void |
setLatestTag(org.apache.velocity.context.Context context,
javax.servlet.jsp.tagext.JspTag tag)
Sets the latest tag encountered.
|
static javax.servlet.jsp.tagext.Tag |
wrapTag(javax.servlet.jsp.tagext.JspTag tag)
If necessary, wraps a
SimpleTag into a Tag . |
public static void setLatestTag(org.apache.velocity.context.Context context, javax.servlet.jsp.tagext.JspTag tag)
context
- The Velocity context.tag
- The tag.public static javax.servlet.jsp.tagext.JspTag getLatestJspTag(org.apache.velocity.context.Context context)
context
- The Velocity context.public static javax.servlet.jsp.tagext.Tag wrapTag(javax.servlet.jsp.tagext.JspTag tag)
SimpleTag
into a Tag
.tag
- The tag to (possibly) wrap.public static void executeSimpleTag(org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node, javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.SimpleTag tag) throws javax.servlet.jsp.JspException, IOException
SimpleTag
.context
- The directive context.node
- The main node of the directive.pageContext
- The page context.tag
- The tag to execute.javax.servlet.jsp.JspException
- If something goes wrong.IOException
- If something goes wrong.public static void executeTag(org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node, javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag tag) throws javax.servlet.jsp.JspException
Tag
.context
- The directive context.node
- The main node of the directive.pageContext
- The page context.tag
- The tag to execute.javax.servlet.jsp.JspException
- If something goes wrong.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.