Hi,
I'm developing a
JSF application and at some point in a
jsp I need to show one of three possible values of an object, that is:
myObject
+--- subObject1
+--- subObject2
+--- property1
if subObject1 is not null I print subObject1.description, if it's null I check for subObject2, if it's not null I print subObject2.description, otherwhise I print property1
I have this piece of code:
Any ideas?? Should I check with "myObject.subObject != null"??