struts-logic, notEqual, compare null variable
843835Apr 11 2003 — edited May 27 2003I would like to request advice using struts-logic. I have Jakarta-struts-1.0.2 working with JavaBeans on Tomcat 4.1 / W2K.
The tags below should not print the value if the value (from a database) is null.
The following tags:
<logic:notEqual name ="bookdetails" property="auth_2_surname" value="">
<br><jsp:getProperty name="bookdetails" property="auth_2_surname" />
</logic:notEqual>
generate this error:
JasperException: Cannot compare null variable to value
Is there a way to use struts-logic when the value to be compared is null?
Thank you for your help.
James