2 つのタグを使用しています。どちらも同じ名前ですが、ID が異なります。
<s:doubleselect id="countryId1" name="country" list="countriesMap.keySet()" doubleId="cityId1" doubleName="city" doubleList="countriesMap.get(top)" />
<s:doubleselect id="countryId2" name="country" list="countriesMap.keySet()" doubleId="cityId2" doubleName="city" doubleList="countriesMap.get(top)" />
アクションで私は取得しようとしました
country String[] countryArray = ServletRequest.getParameterValues("country");
しかし、私は得てcountryArray = null
います。ページコードを見たらこんな状況だった
<select name="country" id="countryId1" onchange="countryId1Redirect(this.options.selectedIndex)">
<option value="USA">USA</option>
<option value="Germany">Germany</option>
</select>
値USAを選択しましたが、selected='selected'
物件がありません。
<select name...
それぞれから選択した値を配列に入れるにはどうすればよいですか?