title: How to Print JSTL iteration values in a new line
body: <p>I have a String like below:</p>
  
  <p>String emps="date1,date2,date3,date4";</p>
  
  <p>My requirement is to print like below on a jsp page using JSTL tags:</p>
  
  <pre><code>OutPut Should be:
  </code></pre>
  
  <p>date1</p>
  
  <p>date2</p>
  
  <p>date3</p>
  
  <p>date4</p>
  
  <p>I have used the below code in my jsp:</p>
  
  <pre><code>&lt;c:set var="string2" value="${fn:split(emps,',')}" /&gt;
  &lt;c:forEach items="${string2}" var="emps1"&gt;
  &lt;td&gt;&lt;c:out value="${emps1}"/&gt;&lt;/td&gt;
  
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>But my code is removing  "," this and printing like below in a single line:</p>
  
  <pre><code>date1 date2 date3 date4 
  </code></pre>
  
  <p>Could any one give me a solution that ,how to print the date values line by line in a jsp using jstl tags?</p>
  
  <p>thanks</p>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>&lt;c:when test="${requestScope.size!=0}"&gt;
          &lt;table border="1"&gt;
              &lt;tr&gt;
                  &lt;th&gt;Employee Code&lt;/th&gt;
  
                  &lt;th&gt;EmployeeName&lt;/th&gt;
                  &lt;th&gt;EmployeeDepartment&lt;/th&gt;
                  &lt;th&gt;AbsentDate&lt;/th&gt;
                  &lt;th&gt;TotalNOOfAbsentDates&lt;/th&gt;
              &lt;/tr&gt;
  
  
              &lt;c:forEach items="${requestScope.set1}" var="emps"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;c:out value="${emps[0]}" /&gt;&lt;/td&gt;
  
                      &lt;td&gt;&lt;c:out value="${emps[1]}" /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;c:out value="${emps[2]}" /&gt;&lt;/td&gt;
  
                      &lt;td&gt;&lt;c:out value="${emps[4]}" /&gt;&lt;/td&gt;
                      &lt;c:set var="string2" value="${fn:split(emps[3],',')}" /&gt;
                      &lt;c:forEach items="${string2}" var="emps1"&gt;
                      &lt;td&gt;
                          &lt;p&gt;&lt;c:out value="${emps1}"/&gt;&lt;/p&gt;
  
                          &lt;/td&gt;
  
                      &lt;/c:forEach&gt;
  
                      &lt;/tr&gt;
              &lt;/c:forEach&gt;
  </code></pre>
  
  <p><strong>Note:</strong>
  I want to print <p></p> this(Iteration) data line by line using  <code>&lt;td&gt;</code> tag?</p>