<body>
<%Vectoraccounts=newVector();
accounts.addElement("bj001");
accounts.addElement("011011");
request.setAttribute("accounts",accounts);
%>
<html:formaction="selectAccount.do">
<tableborder="0">
<tr>
<td>Account:</td>
<td>
<html:selectproperty="account">
<logic:iterateid="account"name="accounts">
<html:optionvalue="">
<bean:writename="account"/>
</html:option>
</logic:iterate>
</html:select>
</td>
</tr>
<tr>
<tdcolspan="2"align="center"><html:submit/></td>
</tr>
</table>
</html:form>
上面是我的代码,我在对应的action中想取得select中选中的值,却发现无法取出;如果在select标签中用<html:option>不使用迭代输出就可以??有没有什么办法能解决用<logic:iterate>也能在action中取得选中的值?请指点