Link to home
Start Free TrialLog in
Avatar of mmoore
mmooreFlag for United States of America

asked on

Set a bean property value in Struts 1.

Struts 1
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>

Open in new window


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.
Avatar of David Favor
David Favor
Flag of United States of America image

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.
Avatar of mmoore

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.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members 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.