Listing 13. Handling a zip code.
清单13.处理邮政编码。
It looks for a zip code parameter in the portlet request.
它在portlet请求中查找邮政编码参数。
The search screen provides a form to enter a zip code.
搜索屏幕提供了一个表单用以输入邮政编码。
Figure 5 shows how to use the weather request with a ZIP code.
图5展示了如何使用具有邮政编码的天气请求。
This prevents problems when an agency adds or drops a zip code.
这可以防止问题当一个机构添加或邮政编码。
The input into the service is a zip code as a type String. Then, the method
服务中的输入是一个字符串类型的邮政编码。
After the user enters a zip code, the results are displayed, as shown in Figure 2.
用户输入一个邮政编码,就会显示出结果,如图2所示。
When you search for a zip code, the map zooms and centers on the location of the zip code.
在搜索一个邮政编码时,地图会以这个邮政编码的位置为中心放大。
The first part of the form takes the sensor ID and submits it to a Web service that returns a zip code.
表单的第一部分获得传感器ID,并将它提交到返回邮政区号的Web服务。
The bot in this article looks for users who start messages with the word weather, followed by a ZIP code.
本文中聊天机器人(bot)查找的用户消息以weather开始,后跟邮政编码。
It has a zip code, which can be recognized and constrained as being, say, different from a United Kingdom postal code.
它包括一个邮政编码,可加以识别和约束,比方说,不同于英国的邮政编码。
At this point in the process, you're in the server side of your RoR application, and you have a ZIP code with five digits.
在流程的这一阶段,您处于RoR应用程序的服务器端,并可以看到一个五位数的邮政区码。
For example, a zip code lookup relationship might map the phone area code "650" to the zip codes "94010," "94305," and so on.
例如,邮政编码查询关系可以将电话区号“650”映射到邮政编码“94010”、“94305”等。
The application's GUI presents the user with an input box for entering a ZIP code and a choice of Celsius or Fahrenheit to represent temperatures.
该应用程序的GUI向用户显示了一个用于输入ZIP代码的输入框,还显示了一个使用摄氏温度还是华氏温度来表示温度的选项。
When a zip code is entered into the search field, a request is passed to the Web server, which USES a PHP ODBC connection to the backend Informix database.
当向搜索字段输入某一个邮政编码后,一个请求就传向一个使用PHPODBC与后台Informix数据库连接的Web服务器。
Use the "movie:" operator to search for a movie title along with either a zip code or U.S. city and state to get a list of movie theaters in the area and show times.
使用“movie: ”操作符可以查找电影字幕,如果加上邮政编码或美国的城市名和州名还可得到在该地区的电影院名单和电影放映时间。
The command is initialized with whatever you define as your unique key (in this case, a zip code), enabling the command to determine whether to call the execute method.
命令用您定义的唯一主键(在本实例中,唯一主键是邮政编码)来初始化,主键让命令来决定是否调用execute方法。
After setting the environment, invoke the "i4glsoademo" program that passes a zip code and retrieves the corresponding city and state from the 4gl function deployed as a Web service.
在设置环境之后,调用“i4glsoademo”程序,它把一个邮政编码传递给部署为Web服务的4gl函数,并从服务接收相应的城市和州。
The service interface for our example is very simple, consisting of one method that can be called by the sample portlet to retrieve the location information, based on a zip code.
我们实例的服务接口非常简单,仅由一个方法构成,以邮政编码为基础,样本portlet可以调用该方法来检索位置信息。
All children are entitled to a high-quality education regardless of their race, zip code, or family income.
所有的孩子都有权接受高质量的教育,无论他们的种族、地区或家庭收入多少。
For example, let's say you created an application that automatically filled in the city for a given ZIP code.
例如,让我们假设您创建了这样一个应用程序,它自动填写指定ZIP编码的城市名。
Imagine the ZIP code was instead a customer ID number in an order-tracking application.
假设ZIP代码被替换成了订单跟踪应用程序中的客户ID号码。
An example of a valid zip code is 90210.
一个有效的邮政编码示例是90210。
A PEAR file is actually a ZIP archive file that contains the annotator code and configuration in a well-defined directory structure.
PEAR文件实际上是一个ZIP存档文件,其中按照定义良好的目录结构包含注释器代码和配置。
Instead, you could create a hash map of zip code and weather information, and save that information into the portlet service.
您可以转而创建一个邮政编码和天气信息的散列图,并将此信息保存到Portlet服务中。
Type in a city, address, or zip code, and PadMapper takes you to the region and pinpoints available apartments.
只要输入城市、地址、或邮政编码,PadMapper就可以把你带到这个区域并准确地列出符合条件的住房。
To refine the query to identify all of those orders that have a shipment address zip code that starts with "10", we can use this XPath statement.
要细化查询,以标识配送地址邮政编码以“10”开头的所有订单,我们可以使用以下xpath语句。
Web services can perform tasks for your component, such as converting currencies, searching the Internet, or returning a United States zip code.
Web服务可以执行组件的任务,例如转换货币、搜索Internet或返回美国邮政编码。
The distribution policy would have determined a slice Two for Address instance a because its ZIP code ends in an odd digit.
根据分布策略,Address实例a 本应该存储在片 Two 内,因为该实例的ZIP代码以奇数结尾。
For example, the key could be a unique user ID, a stock symbol or, in our case, a zip (postal) code.
例如,主键可以是一个唯一的用户ID、一个股票符号,在我们的实例中,主键是一个邮政编码。
应用推荐