|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
it.eng.spagobi.commons.presentation.tags.SpagoBIMessageTag
public class SpagoBIMessageTag
Custom tag that retrieves message using spago facilities
Field Summary | |
---|---|
protected java.lang.String |
args
The arguments. |
protected java.lang.String |
bundle
The servlet context attribute key for our resources. |
protected java.lang.String |
key
The message key of the message to be retrieved. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
SpagoBIMessageTag()
|
Method Summary | |
---|---|
int |
doStartTag()
Process the start tag. |
java.lang.String |
getArgs()
Gets the args. |
java.lang.String |
getBundle()
Gets the bundle. |
java.lang.String |
getKey()
Gets the key. |
void |
release()
Release any acquired resources. |
protected java.lang.String |
replace(java.lang.String messageFormat,
int iParameter,
java.lang.Object value)
Substitutes the message value to the placeholders. |
void |
setArgs(java.lang.String args)
Sets the args. |
void |
setBundle(java.lang.String bundle)
Sets the bundle. |
void |
setKey(java.lang.String key)
Sets the key. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String args
protected java.lang.String key
protected java.lang.String bundle
Constructor Detail |
---|
public SpagoBIMessageTag()
Method Detail |
---|
public java.lang.String getArgs()
public void setArgs(java.lang.String args)
args
- The arguments to setpublic java.lang.String getBundle()
public void setBundle(java.lang.String bundle)
bundle
- The servlet context attribute key to setpublic java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key to setpublic int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- the jsp exception
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
protected java.lang.String replace(java.lang.String messageFormat, int iParameter, java.lang.Object value)
messageFormat
- The String representing the message formatiParameter
- The numeric value defining the replacing stringvalue
- Input object containing parsing information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |