You should do this in your action prior to forwarding to your jsp.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
http://www.EdgeTechServices.net/
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Yahoo IM:[EMAIL PROTECTED]



----- Original Message -----
From: "bOOyah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 12:07 PM
Subject: How can I concatenate bean properties in html:optionsCollection
output?


> Hi again
>
> I'm doing this:
>
>    <html:select property="selectedIdHubChannel">
>      <html:optionsCollection property="myProps"
>                              value="propId"
>                              label="propValue"/>
>    </html:select>
>
> I'd like the label string to be a concatenation of the value plus the
> label attribute.  Sort of like this:
>
>      <html:optionsCollection property="myProp"
>                              value="propId"
>                              label="propId:propValue"/>
>
> Is there a Struts tag I can use, or do I have to doctor the beans in the
> underlying options collection?
>
> Thanks.
> --
> bOOyah
>
>
> ---------------------------------------------------------------------
> 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