Hello, hoping for some help on this:

The nested:iteration on a Bag seems to work fine, and it iterates ok,
but I am having trouble accessing the contents of the Bag (SortedBag or
TreeBag etc)
from the code, please help :) 

  <nested:form action="engtest.do">
    <logic:notEmpty name="_engineer" property="products_SortedBag" >
      <nested:iterate property="products_SortedBag" indexId="i" id="unused"
>
        <%=i%>
        <html:text property='<%="products_SortedBag["+i+"]"%>' />
      </nested:iterate>
    </logic:notEmpty>
    <nested:submit property="submitValue">Submit Changes</nested:submit>
  </nested:form>

Returns:
java.lang.IllegalArgumentException: Non-indexed property for
'products_SortedBag[0]'

And if I try,

        <html:text property='<%="products_SortedBag("+i+")"%>' />

it returns:
java.lang.IllegalArgumentException: Non-mapped property for
'products_SortedBag(0)'

Using <nested:text> gives the same output as well.
So how can I access the contents??

Thanks!

Rand Williams
Hewlett-Packard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to