mmoore
asked on
Set a bean property value in Struts 1.
Struts 1
how to update a bean property. I have something like this:
So, how can I set the value of masterAccountName in the current "accountProgramElement" bean?
I've tried many different ways and read everything I can find but no luck.
how to update a bean property. I have something like this:
<bean:size id="accountProgramListSize" name="CommissionRateForm" property="accountProgramList"/>
<bean:define id="accountProgramList" name="CommissionRateForm" property="accountProgramList"/>
<logic:iterate id="accountProgramElement" name="accountProgramList" indexId="index">
<tr>
<td class="${index % 2 == 0 ? 'tablecelllight' : 'tablecelldark'}"><bean:write name="accountProgramElement" property="masterAccountName"/></td>
So, how can I set the value of masterAccountName in the current "accountProgramElement" bean?
I've tried many different ways and read everything I can find but no luck.
Struts is so rarely used, you may find you'll receive a faster + better (more correct/complete) response posting your question to the Struts mailing list.
ASKER
Thanks David,
and to make it worse, it's Struts 1 and not Struts 2. Also it's JSP. I have followed your advice.
and to make it worse, it's Struts 1 and not Struts 2. Also it's JSP. I have followed your advice.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.