root/trunk/myweb/WebContent/SupportedLocales.jsp

Revision 31, 0.6 KB (checked in by yabuki, 3 years ago)
  • Property svn:mime-type set to text/plain
Line 
1<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"%>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6<title>Supported Locales</title>
7</head>
8<body>
9<ul>
10<%
11Set<String> locales=new TreeSet<String>();
12for (Locale loc:Locale.getAvailableLocales()) locales.add(loc.toString());
13for (String str:locales) out.print("<li>"+str+"</li>");
14%>
15</ul>
16</body>
17</html>
Note: See TracBrowser for help on using the browser.