I tried the following:

<bean:size id="numS" name="sList"/>
<% String [] theId = new String[numS.intValue()]; %>
<% int count = 0; %>
<logic:iterate id="s" name="sList">
        <bean:write scope="page" name="s" property="a"/>
        <bean:write scope="page" name="s" property="b"/>
        <bean:define id="<%= theId[count] %> name="s" property="id"/>

        <logic:iterate id="o" name="oList">
                <logic:equal name="o" property="x.id" value="<%=
theId[count] %>">
                        <bean:write scope="page" name="o" property="zz"/>
                </logic:equal>
        </logic:iterate>
        <% count++; %>
</logic:iterate>

The jsp compiled, but I got a runtime null pointer expection in the
compareTag code
 
org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:
180)
Because the bean:define did not assign a value to theId[count].

Any ideas? Am I making something simple, hard?

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

Reply via email to