您好我正在通过以下
在jsp中显示内容 <c:forEach var="property" items="${billingHistory}">
<div class="fluid bill_grid_color">
<div class="fluid bill_grid_details"><c:out value="${billingHistory.billingDate}"/></div>
<div class="fluid bill_grid_details"><c:out value="${billingHistory.amount}"/></div>
<div class="fluid bill_grid_details"><c:out value="${}"/></div>
</div>
我的控制器是
ModelAndView mav = new ModelAndView();
Integer customerId = AuthHelper.getCustomerFromSession().getCustomerId();
List<BillingHistory> billingHistory = paymentInfoManager.getBillingHistory(customerId);
if(billingHistory == null){
mav.addObject("flag", flag);
mav.addObject("billingHistory", history);
} else {
flag = true;
mav.addObject("flag", flag);
mav.addObject("billingHistory", billingHistory);
}
mav.setViewName("/billingHistory");
return mav;
但是我得到了这个堆栈跟踪
Error occured. java.lang.NumberFormatException: For input string: "billingDate" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.parseInt(Integer.java:499) at javax.el.ListELResolver.coerce(ListELResolver.java:166) at javax.el.ListELResolver.getValue(ListELResolver.java:51) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54) at org.apache.el.parser.AstValue.getValue(AstValue.java:118) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:925) at org.apache.jsp.WEB_002dINF.jsp.billingHistory_jsp._jspx_meth_c_005fout_005f2(billingHistory_jsp.java:509) at org.apache.jsp.WEB_002dINF.jsp.billingHistory_jsp._jspx_meth_c_005fforEach_005f0(billingHistory_jsp.java:449) at org.apache.jsp.WEB_002dINF.jsp.billingHistory_jsp._jspx_meth_c_005fif_005f1(billingHistory_jsp.java:383) at org.apache.jsp.WEB_002dINF.jsp.billingHistory_jsp._jspService(billingHistory_jsp.java:286) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382) at
我怎么解决请帮助我ThnaQ ...