public class CountryTag
extends javax.servlet.jsp.tagext.TagSupport
NOTE - This tag requires a Java2 (JDK 1.2 or later) platform.
Modifier and Type | Class and Description |
---|---|
class |
CountryTag.LabelValueComparator
Class to compare LabelValues using their labels with locale-sensitive
behaviour.
|
Constructor and Description |
---|
CountryTag() |
Modifier and Type | Method and Description |
---|---|
protected List<LabelValue> |
buildCountryList(Locale locale)
Build a List of LabelValues for all the available countries.
|
int |
doStartTag()
Process the start of this tag.
|
void |
release()
Release aquired resources to enable tag reusage.
|
void |
setDefault(String selected) |
void |
setName(String name) |
void |
setPrompt(String prompt) |
void |
setToScope(String scope) |
public void setName(String name)
public void setPrompt(String prompt)
public void setDefault(String selected)
public void setToScope(String scope)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredTag.doStartTag()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Tag.release()
protected List<LabelValue> buildCountryList(Locale locale)
locale
- The Locale used to localize the country names.Copyright © 2015. All rights reserved.