title: Need help in accessing a List in JSP using ModelMap of spring frame work
body: <p>This is the first time ever iam asking a question over here.</p>
  
  <p>I have to display a list in JSP which is beig access over there using the Spring ModelMap object
  The output in form is loop in braces 46 times, 46 times which is the nuber of string in the list.</p>
  
  <p>Please help me in iterating over the List in the JSP. Thanks in Advance.</p>
  
  <pre><code>&lt;form:form commandName="dmnListRef" name="DMN_LIST_REF"  method="POST" modelAttribute="dmnListRef" action="DMN_LIST_REF.html"&gt;
         &lt;c:forEach items="${dmnListRef.listString}" var="loop"&gt;
              &lt;tr&gt;
                   &lt;td&gt;${loop}&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/c:forEach&gt;
              &lt;/form:form
  </code></pre>
  
  <p>I have a Bean</p>
  
  <pre><code>public class DmnListRefVO implements Serializable {
  
      private List&lt;String&gt; listString=new ArrayList&lt;String&gt;();
  
  }
  </code></pre>
  
  <p>And a controler code where iam sedning the lsit to ModelMap</p>
  
  <pre><code>private void fillModelData(ModelMap modelMap) {
      logger.debug("==============Entered the fillModelData dmnListRef======\n");
      DmnListRefVO dmnListRef = dmnListRefService.findAllDmnListRef();
  
      modelMap.addAttribute("dmnListRef", dmnListRef);
  
      logger.debug("==============Exiting the fillModelData dmnListRef=Lisof Headers===="+dmnListRef.getListString());            
      logger.debug("==============Exiting the fillModelData dmnListRef ModelMap======\n"+modelMap);
  
  }
  </code></pre>