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

DefaultLocaleTag

public class DefaultLocaleTag extends javax.servlet.jsp.jstl.core.ConditionalTagSupport

Tag handler for <locales>

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

Fields Summary
private static final Locale
defaultLocale
Constructors Summary
Methods Summary
public booleancondition()


          
    LocalesTag localesTag = (LocalesTag) findAncestorWithClass( this, LocalesTag.class );
    if ( localesTag == null ) {
      throw new JspTagException( "defaultLocale bust be inside locales");
    }
    return localesTag.getCurrent().equals( defaultLocale );