You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rutger Heijmerikx <ru...@gmail.com> on 2005/03/31 19:47:04 UTC

Iterate question

Hi all,

Maybe it's clear what my problem exactly is when i post the jsp
contents and my question.

JSP contents:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglibs-string" prefix="str"%>
<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="styles/default.css" />
</head>
<BODY>

<logic:iterate name="items" id="item">

>From <bean:write name="item" property="from" />
Subject <bean:write name="item" property="subject" />
In reply to <bean:write name="item" property="inreplyTo" />
messageId <bean:write name="item" property="messageId" />
references <bean:write name="item" property="references" />
Message<br />

<str:replace replace="NL" with="<br/>NL" carriageToken="NL">
<bean:write name="item" property="mailcontent" />
</str:replace>

Parent : <bean:write name="item" property="parent" />
</logic:iterate>

</BODY>
</html>



Now, the problem is, that the bean property "parent" is a new bean
itself. How can i iterate through this bean in the same jsp?

Hopefully you understand my problem, if not i'll be glad to explain it better.

Rutger

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org