Check the property of bean is null or not
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdel_Olakara
Posted On:   Wednesday, January 31, 2007 09:29 AM

hi,

i am using struts and i have this problem. I have a bean in session and the values are properly retirved.. but my trouble is during the first page load the property's value in bean is null... I need to check if its null or not and then display. I tried something like this and didn't work:

			







Thanks in advance

-- Abdel Raoof Olakara

http://olakara.googlepages.com

Re: Check the property of bean is null or not

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, March 9, 2007 07:58 PM

try logic:notEmpty instead of logic:notEqual, and also it might a good safeguard, on the "bean:write", to add "ignore=true" just in case.
About | Sitemap | Contact