How to set and get jsp:useBean ArrayList class in jstl

373 views Asked by At

usually in jsp , one could use an arrayList . I could create one as follows:

but how to set one is abit of a problem. for example, I want to add employee beans to it.

<c:forEach var ='employee' itmes = '${employeeList}'>
<c:set target = '${emplList}'value = '${employee}'/>
</c:forEeach>

When I ran this, I get error: Invalid property in <set>: "null". This seems like it wants me to provide the property attribute but do I really need it and what do i provide to it in my example?

Thanks

0

There are 0 answers