Hi use the following for null and empty check:) 
<logic:messagesPresent property="email">
class="errhead4"
</logic:messagesPresent>



With Best Regards,
I.Hari krishna.
------------------------------------------------------------
Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--------------------------------------------------------------
-----Original Message-----
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 12:22 PM
To: user@struts.apache.org
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to