table.jsp: moved if one bracket inside