break;
}
}
} else {
// just in case introspection silently fails.
throw new JasperException(Constants.getString(
"jsp.error.beans.nobeaninfo",
new Object[] {beanClass.getName()}));
}
} catch (Exception ex) {
throw new JasperException (ex);
}
if (method == null) {
if (type == null) {
throw new JasperException(Constants.getString(
"jsp.error.beans.noproperty",
new Object[] {prop, beanClass.getName()}));
} else {
throw new JasperException(Constants.getString(
"jsp.error.beans.nomethod.setproperty",
new Object[] {prop, beanClass.getName()}));
}
}
return method;