struts标签<html:option ?
<html:option value= "aaa ">
<bean:write name= "groupdeptno " property= "deptname "/> </html:option>
我想value值设置成
<bean:write name= "groupdeptno " property= "deptno "/>
我应该怎样写呢?
------解决方案-------------------- <html:option value= " <bean:write name= 'groupdeptno ' property= 'deptno '/ ">
<bean:write name= "groupdeptno " property= "deptname "/> </html:option>
这样写的
难道LZ还有什么特殊的地方吗
------解决方案--------------------同意LS
------解决方案--------------------标签嵌套的原因.
你确定 <bean:write name= 'groupdeptno ' property= 'deptno '> 能得到?
------解决方案--------------------关注一下。。
------解决方案-------------------- <bean:define id= "getPositionList " name= "KH010Form " property= "positionList " type= "java.lang.String[][] "/>
html:select property= "position " size= "1 " >
<%
int listLength = getPositionList.length;
for (int i = 0; i < listLength; i++) {
String companyNo = getPositionList[i][0];
String companyNm = getPositionList[i][1];
%>
<html:option value= " <%=companyNo%> " > <%=companyNm%> </html:option>
<%
}
%>
</html:select>
------解决方案--------------------UP
------解决方案--------------------将 <html:option> 换成普通的option标签
<option value= ' <bean:write name= "groupdeptno " property= "deptno "/> '>
<bean:write name= "groupdeptno " property= "deptname "/> </option>
要换内裤了,给点分~~