You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raghuveer <ra...@infotechsw.com> on 2006/07/18 08:52:08 UTC

logic tags for "" and null check

How to check below code for "" and not null checking using logic tags

below code doesn't work if there is no value in database column.

	<logic:empty property ="databaseColumn1">
	&nbsp;
	</logic:empty>


--------------------

String strTemp =null;
strTemp ="";

if(strTemp!=null && !"".equalsIgnoreCase(strTemp )){
------

--------
}


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org