Results 1 to 1 of 1

Thread: How to bring interation and form context together?

  1. #1
    Join Date
    Aug 2008
    Posts
    20

    Question How to bring iteration and form context together?

    Hi,

    I am facing the following:

    I have a list list1 of items I would like to iterate with a forEach loop.
    Code:
    <c:forEach items="${list1}" var="item">
    This list item contains a property item.prob1 which I want to access within a form select- or checkbox for update reasons.

    Therefore my question is, how can I connect the form commandObject or modelAttribute to the context of an interation?

    The problem is, usually I specify the <form:form /> on the item and this item must refer on the shipped item between jsp and controller ...


    Big thx in advice!
    Last edited by nOiDStaRr; Sep 26th, 2008 at 07:05 AM. Reason: typo

Tags for this Thread

Posting Permissions

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