huong cat

Greenhorn
+ Follow
since Jul 13, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by huong cat

hi,
thnks for your reply

yes,I'v <html:form> tag and many code . I'm writing a web-application.
This jsp page, I have many <html:text> tags and one tag which i've asked for you. My <html:text> work fine, but that tag is always return null.

You can see and help me !!!
19 years ago
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
19 years ago