<% int count=0; int index=0;%>
<bean:define id="tempcount" name="menu" property="others" type="java.lang.Integer"/>
    <% if(index>=(count-1))       
      {
       count=tempcount;
      }
            %>
不正确,如何实现,帮我写一下,或修改一下

解决方案 »

  1.   

    <% int count=0; int index=0;%>
        <logic:iterate scope="session" name="report_data" property="datas" id="menu" indexId="id">
        <bean:define id="tempcount" name="menu" property="others" type="java.lang.Integer"/>
        <% if(index>=(count-1))
          // count=tempcount;   
          {System.out.println("===" + menu.getOthers());
           //count=new int(tempcount.getNumber()); 
            //count=new int(tempcount.getNumber());   
            %>
      

  2.   

    tomcat5.5.17检查很严格的
    Integer跟int互相操作要转换的
    tempcount.intValue()
      

  3.   

    直接用定义的bean对象的getXXX方法即可如
    menu.getXXX()