Announcement Announcement Module
Collapse
No announcement yet.
Bind Map in spring mvc form Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bind Map in spring mvc form

    I have a form in spring mvc 2 having command class "Class1"

    I want to bind Class3 elements with an input field in this form. Below are my classes.

    I am iterating over Class2 elements in JSP other than map like this

    Code:
    <c:forEach var="item" items="${class1.class2List}" varStatus="itemsRow">  
        <form:input path="class2List[${itemsRow.index}].anyElement2" />
        ..........
    </c:forEach>
    My Classes looks like

    Code:
    Class1
    List<Class2> class2List;
    String anyElement1;
    
    Class2
    Map<String, Class3> class2Map;
    String anyElement2;
    
    Class3
    String nameToGet;
    String anyElement3;
    How can I bind anyElement3. Is it possible?
Working...
X