You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Peng, Meimin" <mp...@atxg.com> on 2004/10/12 00:37:36 UTC

am I able to check null value in List??

Hi,

I want to check a null vale in a list.
I try to find all struts-tag libraries for doing it. 
But, not working yet. 
<logic:present><logic:notPresent> is for checking non-null
<logic:empty><logic:notEmpty> is for checking empty string. 

Does anyone can tell me how to check a null value in tag library? 
Thanks.
--MM


CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

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


Re: am I able to check null value in List??

Posted by Susan Bradeen <sb...@gmail.com>.
On Mon, 11 Oct 2004 17:37:36 -0500, Peng, Meimin <mp...@atxg.com> wrote:
> Hi,
> 
> I want to check a null vale in a list.
> I try to find all struts-tag libraries for doing it.
> But, not working yet.
> <logic:present><logic:notPresent> is for checking non-null

I believe these check if the value exisits in the request. This may or
may not be the same as checking for non-null, depending on the
application. I have used this as a check for null values.

> <logic:empty><logic:notEmpty> is for checking empty string.

For these, the Struts user guide says: 

"Evaluate the nested body content of this tag if the requested
variable is either null or an empty string."

So, they do look for null values.

> Does anyone can tell me how to check a null value in tag library?
> Thanks.
> --MM
> 
> CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
> confidential.  Any use, copying or dissemination of any portion of this
> e-mail by or to anyone other than the intended recipient(s) is unauthorized.
> If you have received this e-mail in error, please reply to sender and delete
> it from your system immediately.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

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