MySQL安装和jsp

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);
%>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值