Currently, I am utilizing jsp along with css to style the <td>
within the <table>
tag. My desired code format is shown below:
https://i.sstatic.net/WJjA8.png
However, what I am currently receiving is:
https://i.sstatic.net/bLyvd.png
#bengalistorycontainer{
width:100%;
}
table.my-special-table {
width: 10px;
height: 10px;
border: 1px rgb(89,89,89) solid;
}
<table class="my-special-table">
<tr>
<c:forEach begin="1" end="${classfile}" var="i"varStatus="loop">
<c:choose>
<c:when test="${classfile eq i}">
<td>${1} </div></td>
</c:when>
<c:otherwise>
<td><a href="#">${2}</a></td>
</c:otherwise>
</c:choose>
</c:forEach>
<c:if test="${totalpagenumber != 1}">
<td> <a href="#">next</a> </td>
</c:if>
Can you please point out what I might be doing incorrectly?