org.apache.geronimo.console.web.taglib
public final class: MBeanServerContextValueTag [javadoc |
source]
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.geronimo.console.web.taglib.MBeanServerContextSupport
org.apache.geronimo.console.web.taglib.MBeanServerContextValueTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable
This tag presents the contents of an attribute from the MBeanServerContext
tag to the screen. The attribute type is defined with the "type" parameter
in the attribute tag.
| Methods from javax.servlet.jsp.tagext.TagSupport: |
|---|
|
class$, doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.geronimo.console.web.taglib.MBeanServerContextValueTag Detail: |
public int doEndTag() {
return EVAL_PAGE;
}
|
public int doStartTag() {
ctx = getMBeanServerContext();
server = ctx.getMBeanServer();
JspWriter out = pageContext.getOut();
try {
if (server != null) {
String output = getContextValue(getType());
out.print(output);
}
} catch (IOException e) {
e.printStackTrace();
}
return EVAL_BODY_INCLUDE;
}
|
public String getType() {
return type;
}
|
public void setType(String type) {
this.type = type;
}
|