struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bOOyah <boo...@nowhere.org>
Subject How can I concatenate bean properties in html:optionsCollection output?
Date Tue, 13 Apr 2004 16:07:01 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message