|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.terasoluna.fw.web.taglib.TagUtil
public class TagUtil
Utility class convering all custom tag functions.
Field Summary | |
---|---|
private static java.util.Map<java.lang.String,java.lang.Integer> |
SCOPES
Scope map. |
Constructor Summary | |
---|---|
TagUtil()
|
Method Summary | |
---|---|
static java.lang.String |
filter(java.lang.String value)
Performs sanitization when HTML is output. Replaces "<", ">", "&", ", "'". |
static int |
getScope(java.lang.String scopeName)
Returns the scope constant that matches with scope name of argument. Generates exception when the matching scope does not exist. |
static java.lang.Object |
lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String scopeName)
Fetches the Bean from the specified scope. Fetches the bean from the PageScope when the scopeName argument is Null. |
static java.lang.Object |
lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String property,
java.lang.String scopeName)
Fetches the Bean and fetches the property value from that Bean which is specified as argument. Returns the fetched bean when the property argument is Null. Generates the exception when unable to fetch the Bean. |
static void |
write(javax.servlet.jsp.PageContext pageContext,
java.lang.String text)
Fetches JspWriter from PageContext and outputs the specified text. Version without linefeed. |
static void |
writeln(javax.servlet.jsp.PageContext pageContext,
java.lang.String text)
Fetches JspWriter from PageContext and outputs the specified text. Version with linefeed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.Map<java.lang.String,java.lang.Integer> SCOPES
Constructor Detail |
---|
public TagUtil()
Method Detail |
---|
public static int getScope(java.lang.String scopeName) throws javax.servlet.jsp.JspException
scopeName
- Scope name of constant to be fetched
javax.servlet.jsp.JspException
- When the matching scope does not existpublic static java.lang.Object lookup(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String scopeName) throws javax.servlet.jsp.JspException
pageContext
- Page contextname
- Bean name to be fetchedscopeName
- Scope name that fetches Bean.
javax.servlet.jsp.JspException
- When the matching scope does not existpublic static java.lang.Object lookup(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String property, java.lang.String scopeName) throws javax.servlet.jsp.JspException
pageContext
- Page contextname
- Bean name to be fetchedproperty
- Property name of BeanscopeName
- Scope name that fetches Bean
javax.servlet.jsp.JspException
- When the matching scope does not exist,
When the specified Bean does not exist
public static void write(javax.servlet.jsp.PageContext pageContext, java.lang.String text) throws javax.servlet.jsp.JspException
pageContext
- Page contexttext
- Text to be output
javax.servlet.jsp.JspException
- Exception that wraps IOException when I/O error occurspublic static void writeln(javax.servlet.jsp.PageContext pageContext, java.lang.String text) throws javax.servlet.jsp.JspException
pageContext
- Page contexttext
- Text to be output
javax.servlet.jsp.JspException
- Exception that wraps IOException when I/O error occurspublic static java.lang.String filter(java.lang.String value)
value
- String to be sanitized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |