1. 程式人生 > >El表示式判斷是否為空字串

El表示式判斷是否為空字串

${empty 值}  返回true ,表示為空字串;

e.g    <c:if test=" ${empty  chapterlist} ">

<td>青蛙,是個笨蛋!!!</td>

</c:if>

El表示式判斷是否為空

${值 eq  null } 返回true 的話,表示為空

<c:if test="${chapterlist eq  null }">

<td>青蛙,是個笨蛋!!!</td>

</c:if>