You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael <mi...@idtect.com> on 2002/09/04 15:40:39 UTC

Property is not indexed error using nested taglib

The following works:

<jsp:useBean id="USER" scope="session"
type="com.idtect.oemserver.domain.User" />

<nested:root name="USER">
  <nested:nest property="company">
    <nested:iterate property="plants">
    </nested:iterate>
  </nested:nest>
</nested:root>

But when I try to go one level deeper:

<nested:root name="USER">
  <nested:nest property="company">
    <nested:iterate property="plants">
	  <nested:iterate property="machines">
	  </nested:iterate>
    </nested:iterate>
  </nested:nest>
</nested:root>

I get:

Property 'plants' is not indexed 

Another user told me he was able to fix the problem by changing his
getX() to take an index getX(int i) but I'm using Collections and this
isn't possible (he had to change to ArrayList).  I'm hoping there's an
easy way to get this working so I don't have to do it in java code! ;)

Michael


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>