RE: How can I get a value and a name that is different on a html:options collection?

2003-07-28 Thread Bard A. Evjen
Thank you very much! I really appreciate your help! Cheers, Bård A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Bard A. Evjen
I have a Form class: public Collection getMyMonthList() { myMonthList = new Vector(); Calendar cal = Calendar.getInstance(); cal.setTime(new Date(01012003)); for (int i = 1; i 13; i++) { String label = monthListFormat.format(zeroTime(cal.getTime(), Calendar.MONTH, i)); LabelValueBean

RE: How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Robert Taylor
LabelValueBean labelBean = new LabelValueBean(i, label); Change to LabelValueBean labelBean = new LabelValueBean(String.valueOf(i), label); robert -Original Message- From: Bard A. Evjen [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 8:49 AM To: [EMAIL PROTECTED]

RE: How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Nagaraj_K
I think you need to used nested iterate to get the desired result.Since you are storing objects in the Collection,each value that is returned by labelProperty is just object.toString(); -Original Message- From: Bard A. Evjen [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 6:19 PM