northwind:---------https://github.com/tannancun
mysql:---------------https://www.mysql.con (注意设置编码------utf-8)服务端
sqlyog客户端
cdn------>
mysql -u root -p
<%
//获取客户端本地化信息
Locale locale = request.getLocale();
String language = locale.getLanguage();
String country = locale.getCountry();
%>
<%
out.println("Language : " + language + “
”);
out.println("Country : " + country + “
”);
%>
// Set response content type—设置响应类型
response.setContentType(“text/html”);
// Set spanish language code.设置语言
response.setHeader(“Content-Language”, “es”);
String title = “En Espa?ol”;
区域特定日期
<%
String title = “Locale Specific Dates”;
//Get the client’s Locale
Locale locale = request.getLocale( );
String date = DateFormat.getDateTimeInstance(
DateFormat.FULL,
DateFormat.SHORT,
locale).format(new Date( ));
%>
区域特定货币
<%
String title = “Locale Specific Currency”;
//Get the client’s Locale
Locale locale = request.getLocale( );
NumberFormat nft = NumberFormat.getCurrencyInstance(locale);
String formattedCurr = nft.format(1000000);
%>
区域特定百分比
<%
String title = “Locale Specific Percentage”;
//Get the client’s Locale
Locale locale = request.getLocale( );
NumberFormat nft = NumberFormat.getPercentInstance(locale);
String formattedPerc = nft.format(0.51);
%>