title: insert 2 List into tag <c:forEach> for loop Lists synchronously
body: <p>I want to insert 2 List(orders and prices) into a page(.jsp) and loop 2 list synchronously.I just know insert 1 list into , what is the solution insert 2 LIST into page(jsp) for loop synchronously that, i don't know solution for issue this. THANK ALL.</p>
  
  <p>File:UserController.java</p>
  
  <pre><code>@RequestMapping(value="/{userName}", params = "mada", method=RequestMethod.GET)
      public String ordersOfUser(Model uiModel,@PathVariable("userName")String userName){
  
          List&lt;Order&gt; orders = orderService.findAllWithUsername(userName);
          List&lt;Float&gt; prices = new ArrayList&lt;Float&gt;();
          for(int i=0;i&lt;orders.size();i++){
              prices.add(orderService.countPrice(orders.get(i).getId()));
          }
  
          uiModel.addAttribute("orders",orderService.findAllWithUsername(userName));
          uiModel.addAttribute("prices",prices);
  
          return "orders/orderofuser";
  
      }
  </code></pre>
  
  <p>File:orderofuser.jsp</p>
  
  <pre><code>&lt;body&gt;
      &lt;TABLE&gt;
          &lt;c:forEach items="${orders}" var="i"&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;B&gt;ID&lt;/B&gt;&lt;/td&gt;
                  &lt;td&gt;${i.id}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Order Date&lt;/td&gt;
                  &lt;TD&gt;${i.orderDate}&lt;/TD&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Number&lt;/td&gt;
                  &lt;td&gt;${i.number}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;TD&gt;Description&lt;/TD&gt;
                  &lt;td&gt;${i.description}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Status&lt;/td&gt;
                  &lt;td&gt;${i.status}&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Price&lt;/td&gt;
                  &lt;td&gt;"?"&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;-------------------------------------------&lt;/td&gt;
                  &lt;td&gt;-------------------------------------------&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/c:forEach&gt;
      &lt;/TABLE&gt;
  &lt;/body&gt;
  </code></pre>