0

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

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
user200188
  • 93
  • 1
  • 9
  • @BalusC, I did check the link you provided and just as the questioner asked, his goal was to use the tag NOT use the solution. I could just use a c:set tag with map. why can't I do the same with arrayList? – user200188 Feb 29 '16 at 12:29
  • @BalusC, sorry read my question again. I don't need to create any ListBean class to set a variable in the arrayList. I never had to because that is already created. I just need to set it and using the <:jsp setProperty /> is NOT what I want. if you feel as a boss closing the question. fine but your link doesn't answer my question. – user200188 Feb 29 '16 at 13:35

0 Answers0