Announcement Announcement Module
Collapse
No announcement yet.
AbstractWizardController must invoke another controller. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AbstractWizardController must invoke another controller.

    I think it's a simple question, but not for me :?

    I have a Wizard Controller, and in one page I must iterate over a list and build a HTML table.

    Some part of my jsp code:

    <table>
    <c:forEach var="item" items="${command.items}" varStatus = "loopStatus">
    <tr>
    <td style="width: 106px;">
    <spring:bind path="command.items[${loopStatus.index}].aProperty">
    <input type="text" name="<%= status.getExpression() %>" value="<%= status.getDisplayValue() %>">
    </spring:bind>
    </td>
    .... more TRs ......

    </c:forEach>
    </table>

    I have to add dynamically rows (one row per "item" object) to this table, so I was thinking to add a link to another controller where I fill a new "item" object with some values.

    But I don't know how to invoke (forward to) another controller, and then return to the wizard...It's mean, I must redirect to another form managed by another controller, and then return to the wizard, where the new item must be showed like another row.

    Sorry, but I don't speak very well in english

    Thanks in advance

  • #2
    Hi,

    You can invoke another controller as usual using the url-mapping in your ****-servlet.xml file.

    I think you can do your task within the controller itself.

    Regards,
    Kamal

    Comment

    Working...
    X