|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.www.TagUtils
public final class TagUtils
This class is a collection of useful methods when working with custom JSP tags. Many methods in this class are inspired by Struts classes org.apache.struts.util.ResponseUtils org.apache.struts.taglib.TagUtils
| Method Summary | |
|---|---|
static java.lang.String |
filter(java.lang.String value)
Filter the specified string for characters that are senstive to HTML interpreters, returning the string with these characters replaced by the corresponding character entities. |
static 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. |
static 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 |
| Method Detail |
|---|
public static java.lang.String filter(java.lang.String value)
value - - the string to be filtered and returned
public static 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 - - an error has occured
public static 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 - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||