struts的iterator 标签的问题
myeclipse吧
全部回复
仅看楼主
level 3
z706965666 楼主
<s:iterator id="dfile" value="dfileList" >
<tr align="center" >
<td>${dfile.idownFile}</td>
<td>${dfile.idownFile}</td>
<td>${dfile.idownFile}</td>
</tr>
</s:iterator>
当我ID命名为dfile 的时候 出错如下
Exception occurred during processing request: javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'idownFile'.
org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'idownFile'.
命名该成其他的就可以了,
可是我就纠结 为什么 dfile 这么命名 为什么不 可以呢?????
2015年10月23日 02点10分 1
level 1
为什么要用EL呢 私以为<s:property value=""/>更好一点 我觉得应该是id重复了 菜鸟见解
2015年10月28日 12点10分 2
1