본문 바로가기

Others/Error

[스프링] 심각: Servlet.service() for servlet [jsp] threw exception java.lang.NumberFormatException: For input string: "______"

model.addAttributes()로 넘겨주었는데 값이 나타나지 않는다.


ex )

model.addAttributes("a",a); // controller

a.get(0).name // jsp


위와 같이 .get(0)으로 해결.