*/
public int doStartTag()
throws JspException
{
try {
PageContextImpl pc = (PageContextImpl) pageContext;
_oldTimeZone = pc.getAttribute("com.caucho.time-zone");
Object valueObj = _valueExpr.evalObject(pc.getELContext());
TimeZone timeZone = null;
if (valueObj instanceof TimeZone) {
timeZone = (TimeZone) valueObj;
}
else if (valueObj instanceof String) {
String string = (String) valueObj;
string = string.trim();
if (string.equals(""))
timeZone = TimeZone.getTimeZone("GMT");
else
timeZone = TimeZone.getTimeZone(string);
}
else
timeZone = TimeZone.getTimeZone("GMT");
pc.setAttribute("com.caucho.time-zone", timeZone);
return EVAL_BODY_INCLUDE;
} catch (Exception e) {
throw new JspException(e);
}