struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandru <icid...@yahoo.com>
Subject Re: struts tags: How to use a list inside another list
Date Tue, 14 Jun 2011 12:33:54 GMT
Is there a way to submit the contentList back to the server? in other words, can i send a list
from jsp to struts? I tried the following but it doesn't work:

    <s:form action="do-translate-document" cssClass="formtable"
        method="POST">
        <s:iterator value="contentList">
            <tr><td>
            <p >
                <s:property value="expression" />
            </p>
            <s:hidden name="id"/>
            <textarea name="contentList.content.translations.translation">
</textarea>
            <s:iterator value="translations">
                <p class="translation"><s:property value="translation"
/></p>
            </s:iterator>
            </td></tr>
        </s:iterator>
        <s:submit />
    </s:form>



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message