title: How to use break inEnhanced for loop in jstl?
body: <p>How to use break in Enhanced for loop in JSTL.
   Please check my code 
   <strong>MyModelObject</strong></p>
  
  <pre><code>@RequestMapping(value="/g/{domainId}/{userId}/{userName}/fullProfile.htm" ,method=RequestMethod.GET)
  public String showFullProfile(@PathVariable("domainId")Long domainId,@PathVariable("userName")String userName,@PathVariable("userId")Long userId,Model model) throws Exception {
       try {
                     List&lt;Domains&gt; domains = bal.getDomains();
                        model.put("domain",domains);
                  }
                  catch(Exception e)
                {
             }
  return test;
  }
  </code></pre>
  
  <p>test.jsp</p>
  
  <pre><code>              &lt;c:forEach items="${domain}" var="domain"&gt;
                   ${domain.departmentName}
  
                  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>My problem is every time i fetch only 6 records but  when my for loop reached 6th record i want to stop my for loop how can i do this</p>