我想创建一个下拉菜单,允许客户端按下拉菜单中指定的字段搜索用户.例如,按州搜索,按城市搜索等.
这是我到目前为止:
Search options:
Search all users
Search by user name
Search by first name
Search by last name
Search by address
Search by city
Search by state
Search by zip code
Search by phone number
Search by email
我只是不确定如何连接下拉列表中当前所选项的操作和值标记来指定URI.如果用户选择,并且他输入“Maryland”,我该如何指定相应的URI标签?
这将是我在Spring中执行操作的方法:
@RequestMapping(value = "/get/ByState",method = RequestMethod.GET)
public String getByState() {
.....
}
@RequestMapping(value = "/get/ByCity",method = RequestMethod.GET)
public String getByCity() {
.....
}