The "indexId" attribute of "logic:iterate" allows you to specify a name
of a scriptlet variable to create, to hold the current iteration index.
It assumes this variable is not created anywhere else.  It's not
intended to be used to specify the starting index of your iteration, if
that's what you were trying to do.

-----Original Message-----
From: Jana Navaneethan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 3:04 PM
To: Struts Users Mailing List
Subject: Help with indexId property of logic:iterate!

Hi,
     I want to utilize indexId of <logic:iterate> to display list of
values
from the collection, I want to set this indexId as a property from my
action
form bean like this,
<bean:define id="startIndex" name="categorySearchResultForm"
type="java.lang.Integer" property="startNum"/>
In my form bean getStartNum() returns an Integer.
Then I try to use this bean in my iterate tag like below,
<logic:iterate id="normal" name="categorySearchResultForm"
property="normalCategories"  indexId="startIndex">
I am getting compilation error stating "startIndex" is already defined!
How
to get around this problem? Any help would be greatly appreciated.

Thanks a lot,
Jana.


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


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

Reply via email to