取不到值是因为你的test.jsp页面中的select选项的框没有选中就提交了,应该在test.jsp提交之前把select的内容选中再提交--加一个JAVASCRIPT就可以了加两个JAVASCRIPT
function saveForm(){
selectTotal();
document.powersearch.submit();
}
function selectTotal(){
for (i=0; i<document.powersearch.elements["destList"].length; i++)
document.powersearch.elements["destList"].options[i].selected = true;
}
}然后把
<INPUT type="submit" value=" GO ">改成
<input type="submit" value=" GO " onclick="saveForm();">
function saveForm(){
selectTotal();
document.powersearch.submit();
}
function selectTotal(){
for (i=0; i<document.powersearch.elements["destList"].length; i++)
document.powersearch.elements["destList"].options[i].selected = true;
}
}然后把
<INPUT type="submit" value=" GO ">改成
<input type="submit" value=" GO " onclick="saveForm();">
我那样写是为了做测试,不过谢谢你的回复.to : nc201(Bricklayer)
thank you .
结贴了.