更新时间:2022-10-15 18:43:45
Since cat is a collection of list, when you do ${cato.getCatogories_name}
, expression language tries to manipulate getCatogories_name as a number(index in the list ie cato[]) hence it tries to parse getCatogories_name name as a number and you end up with NumberFormatException.
How about iterating over the list by using c:out?
<c:forEach items="${cato}" var="cat" varStatus="status">
<c:out value="${cato[status.index].catogories_name}" />
</c:forEach>