Results 1 to 2 of 2
  1. #1
    SomeoneHere is offline Member
    Join Date
    Jan 2012
    Posts
    9
    Rep Power
    0

    Default 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:
    Java 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
    Last edited by SomeoneHere; 01-06-2012 at 06:50 PM.

  2. #2
    SomeoneHere is offline Member
    Join Date
    Jan 2012
    Posts
    9
    Rep Power
    0

    Default 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}" />

Similar Threads

  1. Replies: 20
    Last Post: 03-22-2011, 05:02 AM
  2. XML property
    By Abder-Rahman in forum XML
    Replies: 1
    Last Post: 09-27-2009, 08:10 PM
  3. Replies: 0
    Last Post: 06-25-2009, 06:28 AM
  4. where is the system.property
    By osval in forum Advanced Java
    Replies: 2
    Last Post: 08-06-2007, 04:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •