List<TBFtLog> logs = (List<TBFtLog>) systemService
.findListByHql("from TBFtLog where tf_print = 'N' and tf_lot = '" + object[1] + "'");
if (logs == null || (logs != null && logs.size() == 0)) {
System.out.println(logs == null);
System.out.println(logs.size() == 0);
System.out.println(logs != null && logs.size() == 0);
request.setAttribute("opeFlag", true);
} else {
request.setAttribute("opeFlag", false);
}
}
<c:choose>
<c:when test="${opeFlag == true }">
<input type="submit" class="submit" id="submit" value="保存" />
</c:when>
<c:otherwise>
<font color='red' style="font-size:12px;">请确认片标签是否已打印</font>
</c:otherwise>
</c:choose>