(Quick Reference)

name

Purpose

print the localized name of a country or continent

Examples

// get the localized name of a country
<country:name object="${country}"/>

// get the localized name of a continent <country:name object="${continent}"/>

Description

Attributes

  • object (required) - Either a instance of Country or Continent.
  • locale (optional) - The locale used to get the country/continent's name, defaults to the locale of the current request

Source

{source:tag=CountryTagLib.name} {source}