Hi, I am havnig problems with the LabelValueBean in a drop down that is suppose to show the months. I need to display the labels as strings (ex: Jan, Feb, etc). I need to display their respective values as ordinals. When executing the code below, a JSP exception is thrown, tellinng me: "cannot find bean under name months". Any idea what I am doing incorrectly?
ex: Inside ActionForm: public ArrayList getMonths() { months= new ArrayList(); months.add(new org.apache.struts.util.LabelValueBean( "Jan ", "1 " )); months.add(new org.apache.struts.util.LabelValueBean( "Feb ", "2 " )); months.add(new org.apache.struts.util.LabelValueBean( "Mar ", "3" )); months.add(new org.apache.struts.util.LabelValueBean( "Apr ", "4 " )); months.add(new org.apache.struts.util.LabelValueBean( "May ", "5 " )); months.add(new org.apache.struts.util.LabelValueBean( "Jun ", "6 " )); months.add(new org.apache.struts.util.LabelValueBean( "Jul ", "7 " )); months.add(new org.apache.struts.util.LabelValueBean( "Aug ", "8 " )); months.add(new org.apache.struts.util.LabelValueBean( "Sep ", "9 " )); months.add(new org.apache.struts.util.LabelValueBean( "Oct ", "10 " )); months.add(new org.apache.struts.util.LabelValueBean( "Nov ", "11 " )); months.add(new org.apache.struts.util.LabelValueBean( "Dec ", "12 " )); return months; } In JSP: <html:select property="myMonth"> <html:options collection="months" labelProperty="label" property="value" /> </html:select> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]