title: Issue to display data in textarea using for each loop in jsp
body: <p>I have a textarea  as shown below in my jsp page:</p>
  
  <pre><code>&lt;textarea readonly name="input" style="width:600px; height:70px;"&gt; 
                        &lt;c:forEach items="${serviceForm.claim.remarks}" var="remarkElement"&gt; 
                          ${remarkElement.data} 
                      &lt;/c:forEach&gt; 
   &lt;/textarea&gt;
  </code></pre>
  
  <p>I want the data to be displayed like this in the textarea:</p>
  
  <p>data1</p>
  
  <p>data2</p>
  
  <p>data2</p>
  
  <p>However it is being displayed with empty spaces in front of  data1,data2 and data3. Thus the data displayed is indented to the right because of the spaces.</p>
  
  <p>When i check the data in my java code there are no spaces to in front of data1,data2...</p>
  
  <p>I am pretty sure it something to do with the for each loop in textarea.</p>
  
  <p>Any idea how i can remove those spaces please?</p>