I'm trying to call setProperty on a group of checkboxes, i.e., multiple
values for one parameter.
The jsp is as follows:
<jsp:useBean id="myBean" class="com.company.TheBean" />
<jsp:setProperty name="myBean"
property="selectedItems"
param="selectedItems" />
The bean's setter is as follows:
public void setSelectedItems(String[] selectedItems)
{
this.selectedItems = selectedItems;
}
When I access the jsp page on WinNT, Tomcat-3.2.1, it works correctly
and the bean's instance variable is correctly populated.
When I moved it to Linux, Tomcat-3.2.1, I get the following exception:
org.apache.jasper.JasperException: Can't find a method to write property
'selectedItems' in a bean of type 'com.company.TheBean'
Any idea what might be causing this?
Is there a standard way to setProperty on multi-value form elements,
such as checkbox groups?
Thanks, Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]