I have a String like below:

String emps="date1,date2,date3,date4";

My requirement is to print like below on a jsp page using JSTL tags:

```
OutPut Should be:

```

date1

date2

date3

date4

I have used the below code in my jsp:

```
<c:set var="string2" value="${fn:split(emps,',')}" />
<c:forEach items="${string2}" var="emps1">
<td><c:out value="${emps1}"/></td>

</c:forEach>

```

But my code is removing "," this and printing like below in a single line:

```
date1 date2 date3 date4 

```

Could any one give me a solution that ,how to print the date values line by line in a jsp using jstl tags?

thanks

**Update:**

```
<c:when test="${requestScope.size!=0}">
        <table border="1">
            <tr>
                <th>Employee Code</th>

                <th>EmployeeName</th>
                <th>EmployeeDepartment</th>
                <th>AbsentDate</th>
                <th>TotalNOOfAbsentDates</th>
            </tr>

            <c:forEach items="${requestScope.set1}" var="emps">
                <tr>
                    <td><c:out value="${emps[0]}" /></td>

                    <td><c:out value="${emps[1]}" /></td>
                    <td><c:out value="${emps[2]}" /></td>

                    <td><c:out value="${emps[4]}" /></td>
                    <c:set var="string2" value="${fn:split(emps[3],',')}" />
                    <c:forEach items="${string2}" var="emps1">
                    <td>
                        <p><c:out value="${emps1}"/></p>

                        </td>

                    </c:forEach>

                    </tr>
            </c:forEach>

```

**Note:**
I want to print  this(Iteration) data line by line using `<td>` tag?