这里用到的后台数据是“struts2——s:select标签!!!”里面的!!! jsp: <s:optiontransferselect leftTitle="老员工" rightTitle="新员工" name="optiontransferselectname" list="vector" listKey="userno" listValue="username" doubleName="doubleoptiontransferselectname" doubleList="map" doubleListKey="key" doubleListValue="value" /> html: <body> <tr> <td class="tdLabel"></td> <td > <mce:script type="text/javascript" src="/ui/struts/optiontransferselect.js" mce_src="ui/struts/optiontransferselect.js"></mce:script> <table border="0"> <tr> <td> <label for="leftTitle">老员工</label><br /> <select name="optiontransferselectname" size="15" id="optiontransferselectname" multiple="multiple"> <option value="1">张三</option> <option value="2">李四</option> <option value="3">王五</option> </select><input type="button" οnclick="moveOptionDown(document.getElementById('optiontransferselectname'), 'key', '');" value="v"/> <input type="button" οnclick="moveOptionUp(document.getElementById('optiontransferselectname'), 'key', '');" value="^"/> </td> <td valign="middle" align="center"> <input type="button" value="<-" οnclick="moveSelectedOptions(document.getElementById('doubleoptiontransferselectname'), document.getElementById('optiontransferselectname'), false, '');" /><br /><br /> <input type="button" value="->" οnclick="moveSelectedOptions(document.getElementById('optiontransferselectname'), document.getElementById('doubleoptiontransferselectname'), false, '');" /><br /><br /> <input type="button" value="<<--" οnclick="moveAllOptions(document.getElementById('doubleoptiontransferselectname'), document.getElementById('optiontransferselectname'), false, '');" /><br /><br /> <input type="button" value="-->>" οnclick="moveAllOptions(document.getElementById('optiontransferselectname'), document.getElementById('doubleoptiontransferselectname'), false, '');" /><br /><br /> <input type="button" value="<*>" οnclick="selectAllOptions(document.getElementById('optiontransferselectname'));selectAllOptions(document.getElementById('doubleoptiontransferselectname'));" /><br /><br /> </td> <td> <label for="rightTitle">新员工</label><br /> <select name="doubleoptiontransferselectname" size="15" multiple="multiple" id="doubleoptiontransferselectname"> <option value="103">小王</option> <option value="102">小李</option> <option value="101">小张</option> </select> <input type="button" οnclick="moveOptionDown(document.getElementById('doubleoptiontransferselectname'), 'key', '');" value="v"/> <input type="button" οnclick="moveOptionUp(document.getElementById('doubleoptiontransferselectname'), 'key', '');" value="^"/> </td> </tr> </table></td> </tr> </body> 效果