How exactly would you do it?  There are 0-40 (possibly set) user field
values, and I only want to show the ones that have values, and not the ones
that don't.

Thanks,
Mike.

-------------------------------------------------------------
Mike Baranski
O: 919 788 9200
F: 919 510 0037
M: 919 395 0620

m...@secmgmt.com

CVI Authorized User Number: CVI-20080925-1020950
-------------------------------------------------------------

Warning: The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the original sender
immediately by replying to this message and then delete it from your
computer. All e-mail sent to this address will be received by the SMC
corporate e-mail system and are subject to archiving and review by someone
other than the recipient.


-----Original Message-----
From: Dave Newton [mailto:newton.d...@yahoo.com] 
Sent: Tuesday, January 27, 2009 11:55 AM
To: Struts Users Mailing List
Subject: Re: Tags Help

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


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

Reply via email to