在我使用tile的Spring MVC应用程序的xml文件中,我写了以下内容 -
<definition name="dashboard" extends="base.definition">
<put-attribute name="title" value="Dashboard - CMS ♦ ® Galactic NetOne" />
<put-attribute name="body" value="/WEB-INF/views/dashboard.jsp" />
</definition>
Run Code Online (Sandbox Code Playgroud)
但是,请♦ and ®提供它们被引用但未声明的错误.请帮忙.
我得到了例外:
Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Couldn't find 3-letter country code for CS
at java.util.Locale.getISO3Country(Locale.java:1521)
at Business.CountryList.CountryList(CountryList.java:29)
Run Code Online (Sandbox Code Playgroud)
我把这个函数称为:
countryJComboBox.removeAllItems();
countryJComboBox.addItem(CountryList.CountryList(new String[0]));
Run Code Online (Sandbox Code Playgroud)
CountryList类如下:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Business;
import java.text.Collator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
/**
*
* @author Vivek
*/
public class CountryList {
public static Country CountryList(String[] args) {
List<Country> countries = new ArrayList<>();
Locale[] locales = Locale.getAvailableLocales(); …Run Code Online (Sandbox Code Playgroud)