I'm trying to use the <sj:select>
as a double select, where the value from the first select should be used as a input parameter for the second select.
First select:
<s:url id="remoteurlKontor" namespace="/json" action="getKontor"/>
<sj:select label="Kontor"
href="%{remoteurlKontor}"
id="franKontor"
name="franKontor"
onChangeTopics="reloadsecondlist"
list="kontor"
listKey="kontorKod"
listValue="kodAndNamn"
emptyOption="true"
headerKey="-1"
headerValue="Välj kontor"
/>
Second select
<s:url id="remoteurlSektion" namespace="/json" action="getSektionskoder" />
<sj:select label="Sektion"
href="%{remoteurlSektion}"
id="franSektion"
name="franSektion"
reloadTopics="reloadsecondlist"
list="sektionsKoder"
emptyOption="true"
headerKey="-1"
headerValue="Välj Sektion"
onSelectTopics="check"
/>
I want the chosen value from the first select to go as argument in href="%{remoteurlSektion}"
so the URL will be like /json/getSektionskoder.action?kontorskod=0515
in the second select.
Anyone know if it's possible?