解释:该值不为空的时候,为真
方法:
Velocity中判空操作
#if("$!merchant.organizationCertificate" == "") #else <img src="$!merchant.organizationCertificate" width="54" height="54" /> #end
或
#if(!$!merchant.organizationCertificate) #else <img src="$!merchant.organizationCertificate" width="54" height="54" /> #end
参考文献:
http://blog.csdn.net/queenjade/article/details/7641050
http://jiangctry.iteye.com/blog/1485798