jsp页面怎么用struts1的标签取其他页面传过来的参数

如题所述

<logic:iterate id="person" collection="${persons}">
<td> <bean:write name="person" property="age"/> </td>
</logic:iterate>
persons是你action中传过来的对象,age是person的属性

用之前一定要在jsp中引用<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
温馨提示:内容为网友见解,仅供参考
第1个回答  2012-05-08
s:property这个标签
第2个回答  2012-05-08
struts1已经过时了,用sturts2吧
相似回答
大家正在搜