*/
public int doEndTag()
throws JspException
{
try {
PageContextImpl pageContext = (PageContextImpl) this.pageContext;
JspWriter out = pageContext.getOut();
Object value = _valueExpr.evalObject(pageContext.getELContext());
if (value == null) {
if (_var != null)
CoreSetTag.setValue(pageContext, _var, _scope, null);
return EVAL_PAGE;
}
long time = 0;
if (value instanceof Number)
time = ((Number) value).longValue();
else if (value instanceof Date)
time = ((Date) value).getTime();
DateFormat format = null;
Locale locale = pageContext.getLocale();
String type = null;
ELContext env = pageContext.getELContext();
if (_typeExpr != null)
type = _typeExpr.evalString(env);
int dateStyle = DateFormat.DEFAULT;