EL相比如何EL檢查equalIgnoreCase?與equalIgnoreCase
String a = "hello";
a.equalsIgnoreCase("hello");
現在JSP頁面上..
<h:panelGroup rendered="#{patientNotePrescriptionVar.prescriptionSchedule == patientNotePresBackingBean.sendPrescription}">
... Some code here ....
</h:panelGroup>
有什麼辦法來compate patientNotePresBackingBean.sendPrescription
爲equalIgnoreCase?
感謝BalusC,但在這種情況下,也adarshr的回答,即使它給像'屬性前綴FN不對應錯誤到任何導入的標籤庫' – Ketan
您當然需要在JSP的頂部聲明'fn' taglib(完全像您爲JSF'h' taglib所做的那樣)。檢查文檔,瞭解確切的語法:http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/fn/tld-summary.html – BalusC
喔!我認爲它是'c'taglib的一部分... – Ketan