* Process the tag.
*/
public int doStartTag()
throws JspException
{
PageContextImpl pc = (PageContextImpl) pageContext;
LocalizationContext bundle = pc.getBundle(_basename);
if (_scope == null || _scope.equals("") || _scope.equals("page"))
pc.setAttribute(_var, bundle);
else if (_scope.equals("request"))
pc.getRequest().setAttribute(_var, bundle);
else if (_scope.equals("session"))
pc.getSession().setAttribute(_var, bundle);
else if (_scope.equals("application"))
pc.getServletContext().setAttribute(_var, bundle);
else
throw new JspException(L.l("unknown scope `{0}' in fmt:setBundle",
_scope));
Locale locale = bundle.getLocale();