Hi friends,
I am using struts framework. I problem is I have fetched the data from from the databse in arraylist and want to display in the drop down here is the code i have written
<html:select property="productCategory">
<html:options collection="array" />
</html:select>
But I am getting following exception:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean under name array
I have this line in my action class:
request.setAttribute("array",categoryList);
Please tell me where am i going wrong
Thanks,