Methods Summary |
---|
public int | doEndTag()
try {
pageContext.getOut().print(bodyContent.getString());
} catch (IOException ioe) {
throw new JspTagException(ioe.toString(), ioe);
}
return EVAL_PAGE;
|
public int | doStartTag()
if (value == null) {
timeZone = TimeZone.getTimeZone("GMT");
} else if (value instanceof String) {
if (((String) value).trim().equals("")) {
timeZone = TimeZone.getTimeZone("GMT");
} else {
timeZone = TimeZone.getTimeZone((String) value);
}
} else {
timeZone = (TimeZone) value;
}
return EVAL_BODY_BUFFERED;
|
public java.util.TimeZone | getTimeZone()
return timeZone;
|
static java.util.TimeZone | getTimeZone(javax.servlet.jsp.PageContext pc, javax.servlet.jsp.tagext.Tag fromTag)
TimeZone tz = null;
Tag t = findAncestorWithClass(fromTag, TimeZoneSupport.class);
if (t != null) {
// use time zone from parent <timeZone> tag
TimeZoneSupport parent = (TimeZoneSupport) t;
tz = parent.getTimeZone();
} else {
// get time zone from configuration setting
Object obj = Config.find(pc, Config.FMT_TIME_ZONE);
if (obj != null) {
if (obj instanceof TimeZone) {
tz = (TimeZone) obj;
} else {
tz = TimeZone.getTimeZone((String) obj);
}
}
}
return tz;
|
private void | init()
value = null;
|
public void | release()
init();
|