Help!
I am using the html:select html
ptions to populate a list box with month values
Here is my code in the
jsp:
<bean
efine name="wizardCustomMultiReportForm" type="com.sbc.webservices.ebat.reports.forms.WizardCustomMultiReportForm" property="reportMultiMonthList" id="monthList" scope="session" />
<html:form name="wizardCustomMultiReportForm" type="com.sbc.webservices.ebat.reports.forms.WizardCustomMultiReportForm" action="/wizardMultiMonthSelection">
<html:select property="wizardCustomMultiReportForm" name="reportMultiMonthList" size="13" multiple="true">
<html
ptions property="value" labelProperty="label" collection="monthList" />
</html:select>
List monthList = WizardBOFactory.getWizardBO().getBillMonths(user, wForm.getReportId());
if (monthList == null || monthList.size() == 0)
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.reports.reportselection.nodatafound"));
logger.error("No data found.");
}
if (!errors.isEmpty())
{
// 35158
request.setAttribute(HelpConstants.ACTION_PATH, EbatRequestUtils.composePreviousLink(request, mapping));
saveErrors(request, errors);
return mapping.findForward("noDataFound");
}
List beanMonthList = new ArrayList();
// a list of label value bean
// use DateUtil to format the value to the label
for (int i = 0; i < monthList.size(); i++)
{
String month = (String) monthList.get(i);
beanMonthList.add(new LabelValueBean(DateUtil.convertStringDate(DateUtil.monthYearFormat, DateUtil.monthYearHeaderFormat, month), month));
}
wForm.setReportMultiMonthList(beanMonthList);
my form has the appropriate getters and setters for LIST reportMultiMonthList
I am getting the following error:
[ServletException in:/reports/wizard/tiles/wizardMultiMonthSelection.jsp] java/util/ArrayList incompatible with com/sbc/webservices/ebat/reports/forms/WizardCustomMultiReportForm'
without the type in the bean define I get the error that it can't find the bean
What am I doing wrong? I have tried everything I can think of.
Thanks![ServletException
:roll: