Hi
I try to print a dropdown but i make a mistake. I don't know where is
the mistake :
In the action :
"
ArrayList arrayTmp = this.getPartnerListFromDataBase(request);
request.setAttribute("partnerslist", arrayTmp);
"
Where :
"
private ArrayList getPartnerListFromDataBase(HttpServletRequest
request) throws SQLException {
DataSource dataSource = getDataSource(request);
Connection connection = dataSource.getConnection();
Statement statement = connection.createStatement();
ArrayList jobboardList = new ArrayList();
String sql = "SELECT id, name FROM partner ORDER BY name ";
ResultSet rs = statement.executeQuery(sql);
while(rs.next())
{
jobboardList.add(new LabelValueBean(rs.getString("name"),
Integer.toString(rs.getInt("id"))));
}
rs.close();
return jobboardList;
}
"
In the Jsp :
"
<html:select property="product_id_name">
<html:options collection="partnerslist" property="value"
labelProperty="label" />
</html:select>
"
There is the following error message :
"
1javax.servlet.ServletException: No getter method available for property
product_id_name for bean under name org.apache.struts.taglib.html.BEAN
"
Any idea ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]