Thanks for the reply.
I did indeed try to create an <s:iterator../> over an immediate list
of those strings, but I could never get it to work. I can get it to
work over numbers (i.e. <s:iterator status="stat" value="{1,2,3,4,5}"
>), but not strings. Probably user error. I'd love to see a
solution to that.
But your suggestion to use the id parameter w/in the generated
iterator does indeed work. I was attempting to use "id" w/in the
generator tag which does not. So, in the end, this works for me:
<s:generator val="%{'wizards,dwarves,elves'}" separator=",">
<s:iterator id="groupname">
groupname is: <s:property value="#groupname"/><br/>
</s:iterator>
</s:generator>
Thanks for your help.
Kevin
On Sep 21, 2007, at 11:58 AM, Dave Newton wrote:
--- Kevin Wade <[EMAIL PROTECTED]> wrote:
<s:generator val="%{'wizards,dwarves,elves'}"
separator=","
id="myAttr">
<s:iterator>
<s:set name="groupname"
value="#attr.myAttr.next"/>
< want to test groupname here, etc... >
</s:iterator>
</s:generator>
I'm not sure why you're using <s:generator.../> at all
since you could <s:iterator.../> over an immediate
list.
<s:property/> will return the current iteration
object. You should be able to use <s:iterator id="..."
.../> to create a named object for the current
iteration for use in comparisons, just like a
non-generated iterator, but that's just theory at this
point.
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]