컨트롤러에서 inventoryBaitVo를 주입했습니다. jsp에서 c:forEach 에서는 inventoryBaitVo.value 로 불러 올 수 있는데 이걸 벗어나서 inventoryBaitVo 사용하게 되면 에러가 떨어집니다. error ``` HTTP Status 500 - Request processing failed; nested exception is org.apache.tiles.request.render.CannotRenderException: java.io.IOException: JSPException including path '/WEB-INF/views/characters/inventory/editInventoryBait.jsp'. ``` controller ``` @RequestMapping(value ="/characters/inventory/editInventoryBait/{userIdx}", method = RequestMethod.GET) public String editInventoryBait(@PathVariable int userIdx, Model model){ List<InventoryBaitVO> inventoryBaitVo = gameMapper.getInvenBait(userIdx); model.addAttribute("inventoryBaitVo", inventoryBaitVo); return "characters/inventory/editInventoryBait"; } ``` jap ``` <c:forEach var="inventoryBaitVo" items="${inventoryBaitVo}" varStatus="status"> <form action="<c:url value='/characters/inventory/modifyInventoryBaitAmount' />" method="post" class="form-inline"> . . . </form> </c:forEach> <th>Name Of Item</th> <th><input name="amount" type="text" class="form-control" value="${inventoryBaitVo.baitName}"></th> <th>Amount</th> ```
# inventoryBaiteVo 객체가 리스트 이기에 생기는 문제입니다. 간단한(실용적이진 않지만) 해결방법은 아래와 같습니다. 변경 전 ``` <input name="amount" type="text" class="form-control" value="${inventoryBaitVo.baitName}"> ``` 변경 후 ``` <input name="amount" type="text" class="form-control" value="${inventoryBaitVo.get(0).baitName}"> ```