Check if you have month & day properties defined in your form bean.

Suresh

>-----Original Message-----
>From: Scott Seong [mailto:[EMAIL PROTECTED]] 
>Sent: Friday, January 24, 2003 11:32 AM
>To: Struts Users Mailing List
>Subject: Need help with html:select and html:options
>
>
>Hello,
>
>I'm having trouble with html:select and html:options. Basically, I have
>three select/options pairs in a JSP page, and the result is complaining
>about "No getter method available for Property month for bean 
>name under
>org.apache...". Here is the code sample:
>
><%
>Vector states = new Vector();
>
>states.add(new LabelValueBean("Alabama", "AL"));
>
>states.add(new LabelValueBean("Alaska", "AK"));
>
>...
>
>pageContext.setAttribute( "states", states);
>
>Vector months = new Vector();
>
>months.add(new LabelValueBean("Month", "00"));
>
>months.add(new LabelValueBean("January", "01"));
>
>...
>
>pageContext.setAttribute( "months", months);
>
>
>
>Vector days = new Vector();
>
>days.add(new LabelValueBean("Day", "00"));
>
>days.add(new LabelValueBean("1", "01"));
>
>...
>
>pageContext.setAttribute( "days", days);
>
>%>
>
>
>Then, I have html:select and html:options tags as shown below:
><html:select property="state" size="1" tabindex="9">
>
><html:options collection="states" property="value" 
>labelProperty="label" />
>
></html:select>
>
><html:select property="month" size="1" tabindex="11">
>
><html:options collection="months" property="mValue" 
>labelProperty="mLabel"
>/>
>
></html:select>
>
><html:select property="day" size="1" tabindex="11">
>
><html:options collection="days" property="dValue" 
>labelProperty="dLabel" />
>
></html:select>
>
>
>
>The JSP chokes at the 2nd select/options, and I don't know 
>why. If I remove
>2nd and third pair, the JSP seems to work fine. Can someone help?
>
>Thanks,
>Scott
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user->[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: <mailto:[EMAIL PROTECTED]>
>

**************************Disclaimer************************************************** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************




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

Reply via email to