怎样用strus标签获得对象中一个hashset属性中对象的属性 action传来一个实体bean,他个一个hashset的属性,里面包含相同类的三个实体bean,我要获得这三个实体bean中的属性,用sturts标签怎么做 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <logic:iterate id="otherName" name="hashset名"><bean:write name="otherName" property="bean属性"></logic:iterate> 用了上边的方法,但是找不到hashset的bean 应该是我没说详细在action里将HASHSET存起来并命名request.setAttribute("newname",HASHSET);<logic:iterate id="otherName" name="你保存的名字"><bean:write name="otherName" property="bean属性"></logic:iterate> ...不行,要在实体bean里一起传过来,这个hashset是这个实体bean的属性 问题后台传来的是list,是一堆实体bean,我不可能保存啊 我弄出来了, <bean:define id="hashset名" name="bean名" property="hashset名"/> <logic:iterate id="hashset中的bean名" name="hashset名"> <bean:write name="hashset中的bean名" property="bean属性"> </logic:iterate> 呵呵 谢谢大家 myeclipse 7.1 中的tomcat 無法啟動 jfreechart 折线图 MapXtreme 500 for URL错误 点按钮,不经过action怎么能实现页面刷新? JSP调用OCX控件,视频显示--求简单代码及讲解!!在线等,谢谢各位!! oscache缓存包报未序列化的错误 高手请进 table的属性问题<在线等!!> 在jsp中如何判断输入的字符是一浮点小数? 怎样判断输入的字符串中是否包含某个字符或某个字符子串? redis中多对多模型设计问题 问2行代码,请人解答! 问题看附件
<logic:iterate id="otherName" name="hashset名">
<bean:write name="otherName" property="bean属性">
</logic:iterate>
在action里将HASHSET存起来并命名
request.setAttribute("newname",HASHSET);
<logic:iterate id="otherName" name="你保存的名字">
<bean:write name="otherName" property="bean属性">
</logic:iterate>
不行,要在实体bean里一起传过来,这个hashset是这个实体bean的属性
<bean:define id="hashset名" name="bean名" property="hashset名"/>
<logic:iterate id="hashset中的bean名" name="hashset名">
<bean:write name="hashset中的bean名" property="bean属性">
</logic:iterate> 呵呵 谢谢大家