-
Nested s:property
Hi
I've googled a bit about this problem but haven't found solution that would work for me (or did something wrong)..
I have list of users (read from database) with buttons to edit displayed as:
Code:
<s:action name="doGetAllUsers" executeResult="false" var="allUsers"/>
<s:iterator value="#allUsers.allUsers" status="itStatus">
<s:form action="doProcessUser" method="POST">
<s:hidden name="editName" value=<s:property value="name"/> />
<s:property value="name"/><s:submit value="Edit user" name="editUserButton"/>
</s:form>
</s:iterator>
</ul>
Problem is with
<s:hidden name="editName" value=<s:property value="name"/> />
It doesn't work. How can I do such 'dynamic' hidden values?
Regards
-
Re: Nested s:property
Ok it's working. I had to do something wrong before.
If someone also struggles with that solution is:
<s:hidden name="editName" value="%{name}" />