<s:iterator value="destObjects" id="do">
  <s:iterator value="visibleColumns" id="vc">
    <s:property value="#do.%{vc.fieldDefName}"/>
  </s:iterator>
</s:iterator>

It does not work yet :(

Maybe it is a defect of Struts2 which should be improved in the future.

As a choice, it is a good way to mix some JSTL tag or JS scripts in. But that seems to be complicated and boring.
Is there any other solutions for this kind of question in Struts2.0?




From: Dave Newton <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: Embedded <s:iterator/> problem
Date: Mon, 11 Jun 2007 19:32:31 -0700 (PDT)

--- 徐 伟 <[EMAIL PROTECTED]> wrote:
> First, you can look through next jsp codes:
>
> <s:iterator status="stat" value="destObjects">
>   <tr>
>     <s:iterator value="visibleColumns">
>       <td>
>         <s:property
> value="destObjects[%{#stat.index}].%{fieldDefName}"
> />
>       </td>
>     </s:iterator>
>   </tr>
> </s:iterator>

Try something like:

<s:iterator value="destObjects" id="do">
  <s:iterator value="visibleColumns" id="vc">
    <s:property value="#do.%{vc.fieldDefName}"/>
  </s:iterator>
</s:iterator>

I do something very similar in one of my apps but
don't have access to the code right now :/

d.



____________________________________________________________________________________

Shape Yahoo! in your own image. Join our Network Research Panel today!
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to