this would make an excellent example for demonstrating interaction of OGNL and JSTL variables for a Struts2 tutorial if you dont mind.. posting the jsp ..and the action class..
thanks, Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 28 May 2010 09:13:04 -0400 > Subject: Re: ognl: calling action method inside iterator tag > From: ukchuckt...@gmail.com > To: user@struts.apache.org > > Odd, I tried it a number of times without success. I even dumped the value > stack and the object in question was on the stack but the method was never > called in the iterator tag. Maybe it was the method name getErrorCount that > was causing the problem, not sure. The code I got working is below. It's not > too different from the original code I couldn't get working. > > <s:iterator value="%{penaltyBreakdown.fileSubmissionErrors}" > status="errorStatus"> > <tr> > <s:if > test="%{!complianceCategory.name.equals(#currentCategory)}"> > <s:push > value="%{penaltyBreakdown.fileSubmissionErrorCounts[complianceCategory]}"> > <td style="vertical-align:top;" > rowspan="<s:property/>"> > <s:property value="complianceCategory.name"/> > </td> > </s:push> > </s:if> > > <td> > <s:property value=" > nonCompliance.dataAggregate.element.name"/> > </td> > > <td> > <s:property > value="nonCompliance.dataAggregate.countValue" /> > </td> > > <td> > <s:property value="errorMessage"/> > </td> > > <s:if test="%{#errorStatus.first}"> > <td style="vertical-align:top;" > rowspan='<s:property > value="penaltyBreakdown.fileSubmissionErrors.size()"/>'> > <s:property > value="penaltyBreakdown.calcFileSubmissionPenalty()"/> > </td> > </s:if> > </tr> > <s:set name="currentCategory" > value="complianceCategory.name"/> > </s:iterator> _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4