Thanks lukasz, But, I am going to migrate my existing application in struts2. In existing, I have two vectors for each. I have lots of place where I have taken twos. That is why I am finding ways that reduce migration time.
Regards, Nikunj Mulani -----Original Message----- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2008 3:02 PM To: Struts Users Mailing List Subject: Re: Problem with Select tag during migration 2008/11/22 nikunj <[EMAIL PROTECTED]>: > But Struts2 doesn't support separate List data type for label and value. > Example: > > <s:select name="qsymbolcode" list="ListBean1.comboLabelValue" > > listValue="value" > > listKey="key"></s:select> > > Data type of comboLabelValue is List, Which add object having key/value > property. But instead of using list you can use Map with key / value par, and put some KeyObject as a key and then ValueObject as your value, in such way you will have <s:select name="myObject" list="myObjectMap" listValue="somePropertyOfValueObject" listKey="somePropertyOfKeyObject"></s:select> Regards -- Lukasz http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________ NOD32 3632 (20081121) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]