<input type="hidden" name="method" value="execute"/>//加上试试!<logic:iterate name="iterateList"  id="iterateform" scope="request"  type="com.youcompany.struts.form.Iterateform">
<tr>
  <td><bean:write name="iterateform" property="name" filter="true"/></td>
  <td><bean:write name="iterateform" property="home" filter="true"/></td>
  <td><bean:write name="iterateform" property="num" filter="true"/></td>
  <td><bean:write name="iterateform" property="email" filter="true"/></td>
 <td><bean:write name="iterateform" property="passwd" filter="true"/></td>
 <td><bean:write name="iterateform" property="userid" filter="true"/></td>
</tr>
</logic:iterate>  asasaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

解决方案 »

  1.   

    只是我们今天培训的时候讲的!
    用于taglib中的,很不错的!
    如果不行!我也不会了!抱歉!
      

  2.   

    郁闷啊,我已经把它放在request.了,也能在控制台显示出来,可是在jsp 页,。没什么变化
    name id type scope都没问题啊,糊涂了啊
      

  3.   

    呵呵,因该读出了。我用的是system.out.println("col="+col)
    在控制台里就显示了。com.youcompany.struts.form.Iterateform@13245,
    com.youcompany.struts.form.Iterateform@354g33,com.youcompany.struts.form.Iterateform@122fas.......................
    我想这因该是读出来了吧,我是在DAO里读的数据,在action里显示的,
    为什么在jsp 里没有啊
      

  4.   

    打印的是个数据对象地址什么意思我也不懂good luck,什么错,我也不懂,呵呵
      

  5.   

    那应该是正确的呀!
    taglib是定义好的!
      

  6.   

    bean:write中的name指的是你的formBean的名,里面的property也就是你的formBean的属性,你的formBean中定义的是iterateList,所以当然没有内容了。最简单的修改方法就是在iterate中直接使用jsp。
    <logic:iterate name="iterateList"  id="iterateform" scope="request"  type="com.youcompany.struts.form.Iterateform">
    <tr>
      <td><%=iterateform.getName()%></td>
      ....
    </tr>
    </logic:iterate>这样应该就可以了,你试试吧!
      

  7.   

    你的html是一片空白吧,但你可以控制台打印出来的信息,你受骗了。
    其实你的jsp定得可能对了,我没有具体看:-) ,因为你错并是出在jsp中,是Action是错,不知你从哪里看到有要override父类的public ActionForward execute(...)方法,其实在Action中也写得很明白了:////////////////////如下//////////////////////////////////
    /**
     * An <strong>Action</strong> is an adapter between the contents of an incoming
     * HTTP request and the corresponding business logic that should be executed to
     * process this request.  The controller (ActionServlet) will select an
     * appropriate Action for each request, create an instance (if necessary),
     * and call the <code>perform</code> method.</p>
    */
    所以你重定execute方法是没有用的,只有写一个方法
    public ActionForward execute(...){
     return map.findForward(...);
    }
    就可以,你把你定写的execute换成perform准搞定,如行的话别了放分呀:-)
      

  8.   

    老大。你什么意思,我看的不是很明白啊,小弟刚入行不久,知识很浅啊,我记的看的书
    《jsp站点编程指南》里就是这么干的啊,那就是直接在public ActionForward execute(...){里写的啊。perform方法好象是以前老版本的吧,
    我现在跳转到那个页面,只是不能显示iterate标签里的,但是页面的静态的字能显示,
    你的方法是不是就把哪个方法名execute改成perform就好了啊,麻烦你了
      

  9.   

    to   shihb() 我发誓我的jsp标签没问题,我按你的方法做,现在是这样的
    Note: sun.tools.javac.Main has been deprecated.
    /test/form/iterate.jsp:14: Undefined variable or class name: iterateForm
          out.print((iterateForm.getName()));
                     ^
    1 error, 1 warning
      

  10.   

    呵呵,可是在控制台就能输出com.youcompany.struts.form.Iterateform@13245,
    com.youcompany.struts.form.Iterateform@354g33,com.youcompany.struts.form.Iterateform@122fas.......................
    我觉得可能ktyl2000(天涯游子) 说的对,呵呵,被欺骗了,可是为什么啊,怎么解决请高手指点