Also, the items attribute should be enclosed in ${} as: <c:forEach items="${formName.collectionProperty}" var="item" varStatus="s"> <c:if test="${s.index >= offset and s.index < offset + length}" var="displayable"> <html:text property="collectionProperty" value="${item}" /> </c:if> <c:if test="${not displayable}"><html:hidden property="collectionProperty" value="${item}" /></c:if> </c:forEach>
-----Original Message----- From: Oscar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 5:23 AM To: user@struts.apache.org Subject: logic:iterate, with offset and length parameters, lose data Hi, I am using a logic:iterate tag throw a Collection. This collection is a property of my ActionForm. I set also an offset and length. So, shown elements work fine, but not shown elements are just null. I would not like to lose data of the "not shown elements" of the collection. I dont know how to use html:hidden for my purposes, because I think this only can be used for a property. Any help? Thanks in advance Oscar Cristobal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]