ドロップダウン・リストの選択
16822 ワード
<
select name
=
"
queryInfo.cityCode
"
>
<!--
:
public
class
QueryInfo {
private
String cityCode;
//
cityCode getter、setter
public
String getCityCode() {
return
cityCode;
}
public
void
setCityCode(String cityCode) {
this
.cityCode
=
cityCode;
}
}
private
QueryInfo queryInfo;
//
queryInfo getter、setter
public
QueryInfo getQueryInfo() {
return
queryInfo;
}
public
void
setQueryInfo(QueryInfo queryInfo) {
this
.queryInfo
=
queryInfo;
}
-->
<
option value
=
"
0000
"
<
c:
if
test
=
"
${queryInfo.cityCode=='0000' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5910
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5910' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5920
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5920' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5930
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5930' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5940
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5940' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5950
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5950' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5960
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5960' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5970
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5970' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5980
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5980' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
<
option value
=
"
5990
"
<
c:
if
test
=
"
${queryInfo.cityCode=='5990' }
"
>
selected
=
"
selected
"
</
c:
if
>>
</
option
>
</
select
>