FileDocCategorySizeDatePackage
LocalesTag.javaAPI DocGlassfish v2 API3048Sat May 05 19:17:12 BST 2007org.apache.taglibs.standard.examples.taglib

LocalesTag

public class LocalesTag extends javax.servlet.jsp.jstl.core.LoopTagSupport

Tag handler for <locales>

author
Felipe Leme
version
$Revision: 1.3 $ $Date: 2007/05/06 02:17:12 $

Fields Summary
private static final Locale[]
locales
private int
pointer
private String
varTotal
Constructors Summary
Methods Summary
public booleanhasNext()

	return pointer < locales.length;
    
public java.lang.Objectnext()

	return locales[ pointer++ ];
    
public voidprepare()

	pointer = 0;
	if ( varTotal!=null && varTotal.length()>0 ) {
	    pageContext.setAttribute( varTotal, new Integer(locales.length) );
	}
    
    
public voidsetBegin(int value)

  	super.begin = value;
    
public voidsetEnd(int value)

  	super.end = value;
    
public voidsetVarTotal(java.lang.String value)


          
	varTotal = value;