action传来一个实体bean,他个一个hashset的属性,里面包含相同类的三个实体bean,我要获得这三个实体bean中的属性,用sturts标签怎么做

解决方案 »

  1.   


    <logic:iterate id="otherName" name="hashset名">
    <bean:write name="otherName" property="bean属性">
    </logic:iterate>
      

  2.   

    用了上边的方法,但是找不到hashset的bean
      

  3.   

    应该是我没说详细
    在action里将HASHSET存起来并命名
    request.setAttribute("newname",HASHSET);
    <logic:iterate id="otherName" name="你保存的名字">
    <bean:write name="otherName" property="bean属性">
    </logic:iterate>
      

  4.   

    ...
    不行,要在实体bean里一起传过来,这个hashset是这个实体bean的属性
      

  5.   

    问题后台传来的是list,是一堆实体bean,我不可能保存啊
      

  6.   

    我弄出来了,
     <bean:define id="hashset名" name="bean名" property="hashset名"/> 
    <logic:iterate id="hashset中的bean名" name="hashset名"> 
    <bean:write name="hashset中的bean名" property="bean属性"> 
    </logic:iterate> 呵呵 谢谢大家