action中已经取到结果集和分页的数据值并分别存放在了list中,为什么在jsp页面中取结果集循环输出的时候就报错了?如果我屏蔽jsp页面中的el,分页的数据还是能显示出来,我贴下代码:
这是Action中的代码,我肯定Action中已经取到调用方法的值,而且没有报错:
String pages = request.getParameter("page");
if(pages==null||pages.equals("")) {pages="1";}//如果page为空就创建为1
int page=Integer.parseInt(pages);
int pageSum=manageinfobizimp.goCount();//查询所有的行数并为分页
int countSize = manageinfobizimp.goCountSize();//得到总行数
ArrayList List = new ArrayList();
List list=manageinfobizimp.goManage(page);//查询所有用户数据
request.setAttribute("manageList",list);
request.setAttribute("pagelist",page);
request.setAttribute("pageSumlist",pageSum);
request.setAttribute("countSize", countSize);
return mapping.findForward("SelManageOk");
这是JSP页面取值:
     输出内容:
<logic:iterate id="manage" name="manageList">
<td align="center" width="50">${manage.JNum}</td>
<td align="center" >${manage.Jsfz }</td>
<td align="center" >${manage.Jname}</td>
<td align="center" >${manage.Jxk }</td>
<td align="center" >${manage.Jjieguo }</td>
<td align="center" >${manage.Jzhuangtai }</td>
<td><a href="#" >增加</a></td>
<td><a href="#" >删除</a></td>
<td><a href="#" >修改</a></td>
</logic:iterate>
   分页:(分页代码没错,在页面上都显示出来了)
<td colspan="3" align="left">
 共${countSize } 条记录,当前第${pagelist}/${pageSumlist}  页
</td>
<td colspan="4" align="right">
   
<c:if test="${pagelist>1}">
    <a href="manage.do?operate=SelManage&page=1">首页</a>
   </c:if>
<c:if test="${pagelist>1}">
    <a href="manage.do?operate=SelManage&page=${pagelist-1 }">上一页</a>
  </c:if>
<c:if test="${pagelist<pageSumlist}">    
    <a href="manage.do?operate=SelManage&page=${pagelist+1 }">下一页</a>
    </c:if>
  <c:if test="${pagelist!=pageSumlist}">
<a href="manage.do?operate=SelManage&page=${pageSumlist }">尾页</a>

</c:if>
    </td>
</tr>如果屏蔽EL表达式页面又正常输出了,分页的数据都显示出来了
在控制台报的错是:javax.el.PropertyNotFoundException: Property 'JNum' not found on type com.accp.yyb.Bean.ManageInfo,说是没有发现属性,这个问题应该怎么样解决呀??各位大哥们帮帮忙