One way to do this is to make your values a combination of value/label.
You can do something like:

<html-el:option .... value='${foo.label}|${foo.value}'/>

Another way is just to have a lookup utility class to look up labels from
values after the submit.
Ie. LookupUtil.getLabel( value );

Like someone said to me today, 'There's many ways to skin a cat',
I'm not sure why he was skinning cats but I guess it makes sense.
-Tim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 4:35 PM
To: Struts Users Mailing List
Subject: [maybeOT] multi-select drop down list value?


Hi, if I use multi-select option box in my action form, after I select 
some options and   submit the form, the selected values are stored in a 
array of String. My question is :
is  that possible to get both selected values &labels instead of only 
values? 
thanx!


= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or
sensitive information and is solely for the use of the intended recipient.
If you are not intended recipient, you are hereby notified that you have
received this transmittal and any such attachments in error and any review,
dissemination, distribution or copying thereof is strictly prohibited. If
you have received this transmittal and any attachments in error please
notify the sender and immediately destroy the message and all its
attachments. Any opinions herein expressed may be those of the author and
not necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts
no responsibility for the accuracy or completeness of any information herein
contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to