私はフォームでoptiontransferselectを持っていますが、私は自分のアクションで正しいリストの選択項目を取得する方法を知りません。struts2 - optiontransferselect - 整数リストをアクションに渡す
私はすべての訪問国のIDを持つリストを取得する必要があります。私は私の行動List(Integer)countriesVisitedIdで試しました。 nullPointerExceptionを返します。私は整数のIDを試みたが、nullを返します。
これは私が持っているものです。
S:
label="Select visited countries"
name="countriesNotVisitedId"
leftTitle="Not visited countries"
rightTitle="Visited Countries"
list="%{countriesNotVisited}"
listKey="id"
listValue="name"
headerKey="countryNotVisitedId"
headerValue="--- Please Select ---"
doubleName="countriesVisitedId"
doubleList="%{countriesVisited}"
doubleHeaderKey="countryVisitedId"
doubleHeaderValue="--- Please Select ---"
doubleListKey="id"
doubleListValue="name" />
optiontransferselectどのように私は自分の行動で訪れた国の整数IDを持つリストを得ることができますか?あなたのアクションで