就是取不到value 取出来老是为 " " 为什么?
------
jsp是这么写的:
<html:select property= "sort " multiple= "true " size= "1 ">
<html:option value= "1 " > 学生 </html:option>
<html:option value= "2 "> 教师 </html:option>
<html:option value= "3 "> 管理员 </html:option>
</html:select>
------
这个是formbean
<form-beans >
<form-bean name= "LoginForm " type= "org.apache.struts.action.DynaActionForm ">
<form-property name= "sort " type= "java.lang.String " />
</form-bean>
</form-beans>
-----
这个是action
DynaActionForm LoginForm = (DynaActionForm) form;
String s = (String)LoginForm.get( "sort ");
int sort = Integer.parseInt(s);
//这边取出来老是 " "
------解决方案--------------------
下拉列表框是单选还是多选?你去掉multiple= "true "试试