<s:iterator value 有值但<s:property 取不到值
程序代码:
Student_details.jsp
<%out.print("pageBean====");
out.print(request.getParameter("pageBean"));//此处有值org.com.hibernate.Student@189727e, org.com.hibernate.Student@bbb316, org.com.hibernate.Student@ea791d,
%>
<s:iterator value="pageBean" >
<tr>
<td>
<s:property value="id" />
</td>
<td>
<s:property value="name" />
</td>
<td>
<s:property value="password" />
</td>
这是有一个jsp链接到另一个jsp <a href="Student_details.jsp?pageBean=${pageBean.list}"> 我的pageBean已经测试有值,但是却取不到值,而且上面的属性也和Student的属性名称都是一致的, <%out.print("pageBean====");
out.print(request.getParameter("pageBean"));//此处有值org.com.hibernate.Student@189727e, org.com.hibernate.Student@bbb316, org.com.hibernate.Student@ea791d,
%>
<s:iterator value="pageBean" >
<tr>
<td>
<s:property value="id" />
</td>
<td>
<s:property value="name" />
</td>
<td>
<s:property value="password" />
</td>
搜索更多相关主题的帖子:
property
----------------解决方案--------------------------------------------------------