Hi,
I use this code:
<s:iterator value="lawDraft.docs" id="doc" status="document">
     <s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="document.index"/>"/>
     <tr id="%{#rawMainDocIdParam}">
          some content
     </tr>
</s:iterator>

For this I usually do something like (untested):

<s:iterator ...>
   <s:set var="i" value="%{#status.index}"/>
   <tr id="row_${i}">...</tr>
</s:iterator>

Btw, you can't use OGNL expression in non-struts tags (you tried to use it in tr).
There's a tabletags taglib for struts2, which might be useful for you.

Hope that helps,
Joachim
The problem is: I'm trying to access status (starts from 0) of iterator,
I've tried
<s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="document.index"/>"/>
I get error: "No information about attribute tag document.index"
I've tried <s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="#document.index"/>"/>
and
<s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="%{#document.index}"/>"/>
In both cases I get error "Can't convert to xml document.index"

Any suggestions, please, can't understand mistake.


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

Reply via email to