FileDocCategorySizeDatePackage
SetBundleSupport.javaAPI DocGlassfish v2 API4048Sat May 05 19:17:52 BST 2007org.apache.taglibs.standard.tag.common.fmt

SetBundleSupport

public abstract class SetBundleSupport extends javax.servlet.jsp.tagext.TagSupport
Support for tag handlers for <setBundle>, the JSTL 1.0 tag that loads a resource bundle and stores it in a scoped variable.
author
Jan Luehe

Fields Summary
protected String
basename
private int
scope
private String
var
Constructors Summary
public SetBundleSupport()

	super();
	init();
    
Methods Summary
public intdoEndTag()

	LocalizationContext locCtxt =
	    BundleSupport.getLocalizationContext(pageContext, basename);

	if (var != null) {
	    pageContext.setAttribute(var, locCtxt, scope);
	} else {
	    Config.set(pageContext, Config.FMT_LOCALIZATION_CONTEXT, locCtxt,
		       scope);
	}

	return EVAL_PAGE;
    
private voidinit()

	basename = null;
	scope = PageContext.PAGE_SCOPE;
    
public voidrelease()

	init();
    
public voidsetScope(java.lang.String scope)

	this.scope = Util.getScope(scope);
    
public voidsetVar(java.lang.String var)

        this.var = var;