I have an action class, in which i read values from DB. i want to display those values in
jsp using <html:select> as a listbox.
for this:
1)i declared one arraylist called statuslist in my formbean
2)im setting those retrieved values in action class to this arraylist like this.
while(rs.next())
{
fmActionForm = new FileManagementActionForm();
status = rs.getString("status");
statusList.add(status);
fmActionForm.setStatuslist(statusList);
}
3)in jsp, i try to display using <html:select> like this
<html:select property="selectedstatus" styleClass="select">
<html:options collection="statuslist" labelProperty="status" property="status"/>
</html:select>
i didnt use any session object to set and get in jsp for the arraylist.
Im getting error as: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean under name statuslist
can anybody tell me am i doing correctly or not?
thanks in advance,
kishore