2008/4/15, JRD <[EMAIL PROTECTED]>:
> <tiles:insert definition="${definition}">
> <tiles:put name="viewFormat" value="${viewFormat}"/>
> <c:forEach items="${theTiles.attributeNames}" var="attribute">
> <tiles:put name="${attribute}"><tiles:getAsString
> name="${attribute}"/></tiles:put>
> </c:forEach>
> </tiles:insert>
I am sorry to say it, put this is plain wrong: you are trying to push
the attributes from the attribute context in which the <tiles:*> tags
are, to the context of the inserted definition, one by one.
I suggest to refactor your code putting the attributes directly in the
inserted definition, for example, via a ViewPreparer:
http://tiles.apache.org/tutorial/advanced/preparer.html
Notice that this won't help you in pushing the attributes from one
context to another (the "AttributeContext" parameter is the current
context, i.e. in your case it would be the context of the
"${definition}" definition).
Maybe the right thing to do is starting from the beginning: what are
you trying to accomplish?
Antonio