Mike Baranski wrote:
<ww:iterator value='person.userFields'>
  <tr><td><ww:property value='slotNumber'/></td><td><ww:property
value='description'/></td></tr>
</ww:iterator>

The package.properties file defines:

User1 = Label for user1
User2 = Label for user2
...
User40 = Label for user40

Now, how do I call getText for Userx where x is the slot number?  I can't
figure out how to generate that concatenated string of "User" + <ww:property
value='slotNumber'/> and then call getText(that_string).

I'm not sure that's how I'd do that, but that aside, in addition to using an immediate expression:

<s:set var="foo" value="'User' + #top.slotNumber"/>

(Or something like that--I almost never use the #top thing--or use a var in the iterator and assign each element to a variable, or use the same method directly in the getText call, and so on.)

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to