Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

struts-logic, notEqual, compare null variable

843835Apr 11 2003 — edited May 27 2003
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2003
Added on Apr 11 2003
1 comment
587 views