Posted By:
Amit_Kumar
Posted On:
Thursday, October 29, 2009 04:48 PM
Hello friends. I am new to jsf. I am having a bean method which gets the data from the database into an arraylist called theBookDetails.
I am able to represent this arrayList's data into my jsf page which is called searchBookResults.jsp
Now I also want to get the arraylist as an attribute on my searchBookResulys.jsp page, but this is giving me errors.
The code that I am using on my jsp page is as follows :
line 221 :ArrayList
bookDtls= (ArrayList
)request.getAttribute("theSearchedBookDetails");
line 222:int i=bookDtls.size();
I am getting error on line 222.
Please help. Thanks in advance.