dcsimg
Problem with logic tags for bean property with empty value
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   stewart_gray
Posted On:   Wednesday, January 23, 2002 11:58 AM

Hi all. I have a bean one of whose properties is parentId. I need to test to see if the parentId has a value or is null/empty.

Some of the documentation refers to the logic:empty and logic:notEmpty tags but I can't find these in either struts.jar or struts-logic.tld. Do they exist?

I then tried using the logic:equal and logic:notEqual tags to do the same thing but whenever the property has an empty string as value the tag seems to fail whether I am comparing against a non-empty value such as value="testval" or an empty value value="".

Please how can I test to see if a bean property is empty?

Re: Problem with logic tags for bean property with empty value

Posted By:   Ted_Husted  
Posted On:   Thursday, January 24, 2002 06:35 PM

empty and notEmpty are in the nightly build.


You can usually use present to test for null/


HTH -Ted

About | Sitemap | Contact