HTTP客户端可以用自己喜欢的数据格式和语言,在请求的头部追加目标URI来传送。内容提供者应该提供这些设置服务。
HTTP clients may pass over the preferred data formats and languages along with the target URI in the request header, and the content provider should serve these Settings.
浏览器可以以URL形式询问服务器不同的问题并将打包成请求参数和POST数据的提示一并传递,但它其实并不 “讲” 服务器的语言。
The browser can ask the server different questions in the form of URLs and pass along hints packaged as request parameters and POST data, but it doesn't really speak the server's language.
正如我们已经讨论过的那样,JSTL标记在格式化数据时所使用的语言环境往往是通过查看用户浏览器发送的每个HTTP请求所包含的Accept - Language头来确定的。
As we already discussed, the locale used by the JSTL tags when formatting data is normally determined by examining the Accept-Language header sent by a user's browser as part of each HTTP request.
清单3显示如何在InputData数据结构中设置请求语言环境。
Listing 3 shows how to set request the locale in the InputData data structure.
在对数据库的操作中,采用数据库描述语言SQL实现对关系数据库的访问,应用程序通过调用ODBC函数,向数据库提交SQL请求,避开了对数据库的直接操作。
In this system, SQL is used to realize the access to Database, the application program use ODBC function, give a SQL request to Database will avoid the direct access to Database.
在对数据库的操作中,采用数据库描述语言SQL实现对关系数据库的访问,应用程序通过调用ODBC函数,向数据库提交SQL请求,避开了对数据库的直接操作。
In this system, SQL is used to realize the access to Database, the application program use ODBC function, give a SQL request to Database will avoid the direct access to Database.
应用推荐