You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Jobe, Mark A. (LNG-DAY)" <ma...@lexisnexis.com> on 2003/05/20 21:40:20 UTC
iterate question
Is it possible to use a bean property as the length parameter in a
logic:iterate tag?
I tried
<logic:iterate id="source" name="sourceIterator" length="<bean:write
name="source" property="numIterations"/>">
but get a "Attribute source has no value error"
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: iterate question
Posted by Mark Galbreath <ma...@qat.com>.
You can't use a tag as an attribute in Struts. You can, however, set a
scripting variable and use <%=len%> as an attribute value.
Mark
-----Original Message-----
From: Jobe, Mark A. (LNG-DAY) [mailto:mark.jobe@lexisnexis.com]
Sent: Tuesday, May 20, 2003 3:40 PM
To: 'Struts Users Mailing List'
Subject: iterate question
Is it possible to use a bean property as the length parameter in a
logic:iterate tag? I tried <logic:iterate id="source" name="sourceIterator"
length="<bean:write name="source" property="numIterations"/>"> but get a
"Attribute source has no value error"
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org