I am trying to print the status in different colours using bootstrap but this prints nothing. Please can somebody help to figure out my mistake.
<% if (a.getStatus() == "OnTime")
{%>
<td class="btn-success"><%= a.getStatus()%></td>
<% } else if (a.getStatus() == "Delayed")
{%> <td class="btn-warning"><%= a.getStatus()%></td>
<% } else if (a.getStatus() == "Canceled")
{%> <td class="btn-danger"><%= a.getStatus()%></td> F
<% } else
{ %> <td> </td> <% } %>