Hi all,
I have a problem with tag in struts. Please help me if you can...
in my testAdd.jsp I write
<td>
<bean:size id="sizeOfAgent" name="CDContractAddForm" property="agentList"/>
<select property="txtAGENTNAME">
<logic:iterate id="agent" name="CDContractAddForm" property="agentList" offset="0" length="sizeOfAgent" indexId="index"><option value="<bean:write name="agent" property="txtAGENTNAME"/>">
<bean:write name="agent" property="txtAGENTNAME"/></option>
</logic:iterate>
</select>
</td>
the next page : testConfirmAdd.jsp
<bean
efine id="agList" name="CDContractAddForm" property="agentList" type="form.CDContractAddForm"/>
<bean:size id="sizeOfAgent" name="CDContractAddForm" property="agentList"/> <select disabled name="txtAGENTNAME" width="90%" >
<logic:iterate id="agent" name="agList" offset="0" length="sizeOfAgent" indexId="index">
<logic:equal name="agent" property="txtAGENTNAME" value="<%= agentChose %>">
<option value="<bean:write name="agent" property="txtAGENTNAME"/>"selected><bean:write name="agent" property="txtAGENTNAME"/> </option>
</logic:equal>
<logic:notEqual name="agent" property="txtAGENTNAME" value="<%= agentChose %>">
<option value="<bean:write name="agent" property="txtAGENTNAME"/>"><bean:write name="agent" property="txtAGENTNAME"/> </option>
</logic:notEqual>
</logic:iterate>
</select>
I always receip a null txtAGENTNAME's value. Why ? Please help me soon. Thanks