}
protected DateFormat getFormat()
throws JspException, ELException
{
PageContextImpl pageContext = (PageContextImpl) this.pageContext;
ELContext env = pageContext.getELContext();
DateFormat format = null;
Locale locale = null;
if (_parseLocaleExpr != null) {
Object localeObj = _parseLocaleExpr.evalObject(env);
if (localeObj instanceof Locale)
locale = (Locale) localeObj;
else if (localeObj instanceof String)
locale = pageContext.getLocale((String) localeObj, null);
}
if (locale == null)
locale = pageContext.getLocale();
String type = null;
if (_typeExpr != null)
type = _typeExpr.evalString(env);