I'm looping over a list and want to access the value to create a text input field. Unfortunatley I'm failing to access the loop variable inside the <s:textfield>
tag
This is what I tried:
<s:iterator var="tag" value="searchTagList">
<s:property value="#tag"/>
<s:textfield key="searchResults.#tag" name="#tag" value="#tag" />
</s:iterator>
The <s:property value="#tag"/>
is evaluated correctly and shows the loop variable. But the #tag
in the <s:textfield>
is never evaluated.
I also tried to put <s:property value="#tag"/>
instead of #tag
without success.