struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rassmann, Natalie D" <natalie.d.rassm...@lmco.com>
Subject indexed property not working
Date Thu, 06 May 2004 15:44:29 GMT
Hi - 

I have an arraylist within an arraylist and I am trying to iterate throught it.  When I use
indexed on the item; it doesn't seem to be indexing the name.  Here is a code snippet:

 <logic:iterate id="testProceduresList" name="crPacketForm" property="testProceduresList"
indexId="i">


  <c:forEach items="${crPacketForm.map.tstProcSteps[i]}" var="steps" varStatus="idx">

      <html-el:textarea name="steps" property="action"  rows = "5" cols="80" indexed="true"/>

  </c:forEach>  


</logic:iterate>

When I look at the generated source code I see the following being generated:

<textarea name="steps[0].action" cols="80" rows="5">Start ACTS MK51 by bringing up the
system. Init a scenario run a ACTS exercise.   </textarea>
 <textarea name="steps[0].action" cols="80" rows="5">ddaf</textarea>

Every textarea for the property action has steps[0] instead of steps[0], steps[1], etc.

The indexing does not seem to be working?  Does anyone have any ideas????

Natalie

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


Mime
View raw message