Hi ML...
I have kind of a problem which I just can't get solved!
I have an iterate tag inside an iterate tag, but in the nested iterate tag I need the indexed value from the outer iterate tag!!
I have:
<html:form action="/storeCombiQuestion.do">
<logic:present name="subQuestions" scope="session">
<logic:iterate name="subQuestions" id="question" indexId="subQuestion">
<bean:write name="question" property="text" />
<logic:match name="question" value="SingleChoice" >
<logic:iterate name="question" property="possibleChoices" id="option" type="dk.procore.model.Option">
<html:radio property="answer" value="<%=option.getOption()%>" indexed="true">
<bean:write name="option" property="option" />
</html:radio>
</logic:iterate>
<br />
</logic:match>
</logic:iterate>
</logic:present>
<html:submit />
</html:form>
Now.. The problem lies in the nested iterate tag. The "indexed=true" takes the value from the iterate tag in which it is nested, but what I really need is the one from the outer tag, which is called subQuestion. The reason I need the 'outer' is because the <html:radio is dependant on it.
I'm not even sure it can be done this way, but if it can't then I would like a suggestion of what to do then...
Thanks in advance...
Claus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]