RE: bean:write returning null
Yes Thinh I think thats the way to go Regards, Taati > -Original Message- > From: Thinh Doan [SMTP:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:44 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > Can you use logic:present ? > > Thinh > > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:30 PM > To: Struts (E-mail) > Subject: bean:write returning null > > > How are you guys testing for this in JSP? > > Mark > "De recta non tolerandum sunt." > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Exactly right on. -Original Message- From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 6:42 PM To: '[EMAIL PROTECTED]' Subject: RE: bean:write returning null > Couln't you use the ignore=true flag instead? Well, it depends. I guess i assumed Mark didn't want to just ignore it...maybe his JSP has something like: Bubba says "" In which case, the rendered HTML would be: Bubba says "" ...which would look weird. So maybe he'd just rather not write the "Bubba says" message at all in that case, which is why i wrote the example in my previous post the way i did. So, he could do: Bubba says "" But, i guess this would be even better: Bubba says "" Time to go home...yay for Friday. thanks, chris > -Original Message- > From: Pedone, Tim [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 5:12 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > Couln't you use the ignore=true flag instead? > > > > > If bubba were null, nothing would get written. > > You could take this one step further if you were simply > checking the bean > itself and not a property of the bean for null: > > > > would ignore if the "bubba" bean could not be found in any > scope. If you > using a property of bubba that could be null... > > > > would write nothing if bubba was null but wouldn't if > bubba.getBubbaProp() > returned null, then you'd have to use the bean:define version above. > > Tim > > -Original Message- > From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 1:56 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > Have you tried doing a first, and then checking > for null with > ? > > For example, say that you were doing this: > > > > But you want to make sure that it isn't null first...so, try this: > > > > > > > (i haven't tested this, so my apologies for any syntax errors) > > Hope that helps. > > chris > > > -Original Message- > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 3:37 PM > > To: 'Struts Users Mailing List' > > Subject: RE: bean:write returning null > > > > > > I tried logic:isEmpty without success. > > > > -Original Message- > > From: Thinh Doan [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 4:44 PM > > To: Struts Users Mailing List > > Subject: RE: bean:write returning null > > > > > > Can you use logic:present ? > > > > Thinh > > > > -Original Message- > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 3:30 PM > > To: Struts (E-mail) > > Subject: bean:write returning null > > > > > > How are you guys testing for this in JSP? > > > > Mark > > "De recta non tolerandum sunt." > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
> Couln't you use the ignore=true flag instead? Well, it depends. I guess i assumed Mark didn't want to just ignore it...maybe his JSP has something like: Bubba says "" In which case, the rendered HTML would be: Bubba says "" ...which would look weird. So maybe he'd just rather not write the "Bubba says" message at all in that case, which is why i wrote the example in my previous post the way i did. So, he could do: Bubba says "" But, i guess this would be even better: Bubba says "" Time to go home...yay for Friday. thanks, chris > -Original Message- > From: Pedone, Tim [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 5:12 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > Couln't you use the ignore=true flag instead? > > > > > If bubba were null, nothing would get written. > > You could take this one step further if you were simply > checking the bean > itself and not a property of the bean for null: > > > > would ignore if the "bubba" bean could not be found in any > scope. If you > using a property of bubba that could be null... > > > > would write nothing if bubba was null but wouldn't if > bubba.getBubbaProp() > returned null, then you'd have to use the bean:define version above. > > Tim > > -Original Message- > From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 1:56 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > Have you tried doing a first, and then checking > for null with > ? > > For example, say that you were doing this: > > > > But you want to make sure that it isn't null first...so, try this: > > > > > > > (i haven't tested this, so my apologies for any syntax errors) > > Hope that helps. > > chris > > > -Original Message- > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 3:37 PM > > To: 'Struts Users Mailing List' > > Subject: RE: bean:write returning null > > > > > > I tried logic:isEmpty without success. > > > > -Original Message- > > From: Thinh Doan [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 4:44 PM > > To: Struts Users Mailing List > > Subject: RE: bean:write returning null > > > > > > Can you use logic:present ? > > > > Thinh > > > > -Original Message- > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 3:30 PM > > To: Struts (E-mail) > > Subject: bean:write returning null > > > > > > How are you guys testing for this in JSP? > > > > Mark > > "De recta non tolerandum sunt." > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Chris' suggestion works (thanks!); just for grins I'll try ignore as well. Mark -Original Message- From: Pedone, Tim [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 6:12 PM To: 'Struts Users Mailing List' Subject: RE: bean:write returning null Couln't you use the ignore=true flag instead? If bubba were null, nothing would get written. You could take this one step further if you were simply checking the bean itself and not a property of the bean for null: would ignore if the "bubba" bean could not be found in any scope. If you using a property of bubba that could be null... would write nothing if bubba was null but wouldn't if bubba.getBubbaProp() returned null, then you'd have to use the bean:define version above. Tim -Original Message- From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 1:56 PM To: 'Struts Users Mailing List' Subject: RE: bean:write returning null Have you tried doing a first, and then checking for null with ? For example, say that you were doing this: But you want to make sure that it isn't null first...so, try this: (i haven't tested this, so my apologies for any syntax errors) Hope that helps. chris > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:37 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > I tried logic:isEmpty without success. > > -Original Message- > From: Thinh Doan [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:44 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > > Can you use logic:present ? > > Thinh > > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:30 PM > To: Struts (E-mail) > Subject: bean:write returning null > > > How are you guys testing for this in JSP? > > Mark > "De recta non tolerandum sunt." > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Couln't you use the ignore=true flag instead? If bubba were null, nothing would get written. You could take this one step further if you were simply checking the bean itself and not a property of the bean for null: would ignore if the "bubba" bean could not be found in any scope. If you using a property of bubba that could be null... would write nothing if bubba was null but wouldn't if bubba.getBubbaProp() returned null, then you'd have to use the bean:define version above. Tim -Original Message- From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 1:56 PM To: 'Struts Users Mailing List' Subject: RE: bean:write returning null Have you tried doing a first, and then checking for null with ? For example, say that you were doing this: But you want to make sure that it isn't null first...so, try this: (i haven't tested this, so my apologies for any syntax errors) Hope that helps. chris > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:37 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > I tried logic:isEmpty without success. > > -Original Message- > From: Thinh Doan [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:44 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > > Can you use logic:present ? > > Thinh > > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:30 PM > To: Struts (E-mail) > Subject: bean:write returning null > > > How are you guys testing for this in JSP? > > Mark > "De recta non tolerandum sunt." > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Have you tried doing a first, and then checking for null with ? For example, say that you were doing this: But you want to make sure that it isn't null first...so, try this: (i haven't tested this, so my apologies for any syntax errors) Hope that helps. chris > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:37 PM > To: 'Struts Users Mailing List' > Subject: RE: bean:write returning null > > > I tried logic:isEmpty without success. > > -Original Message- > From: Thinh Doan [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:44 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > > Can you use logic:present ? > > Thinh > > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:30 PM > To: Struts (E-mail) > Subject: bean:write returning null > > > How are you guys testing for this in JSP? > > Mark > "De recta non tolerandum sunt." > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Not at all.. Just a newbie! in struts Regards, Taati > -Original Message- > From: James Mitchell [SMTP:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:49 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > You're not a lawyer too are you? > > JM > > > -Original Message- > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 4:40 PM > > To: Struts Users Mailing List > > Subject: RE: bean:write returning null > > > > > > Great! > > I am becoming a worthy(??) disciple if not a guru! > > Keep Going Guys! > > > > Regards, > > Taati > > > -Original Message- > > > From: James Mitchell [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, May 10, 2002 4:42 PM > > > To: Struts Users Mailing List > > > Subject: RE: bean:write returning null > > > > > > Yes you are > > > > > > http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg30390.html > > > > > > > > > > > > JM > > > > > > > -Original Message- > > > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, May 10, 2002 4:34 PM > > > > To: Struts Users Mailing List > > > > Subject: RE: bean:write returning null > > > > > > > > > > > > > > > > By using Present tag I believe,,, > > > > Leo and Jim helped me with this y'day > > > > Am I correct Jim and Leo > > > > Regards, > > > > Taati > > > > > -Original Message- > > > > > From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]] > > > > > Sent: Friday, May 10, 2002 4:30 PM > > > > > To: Struts (E-mail) > > > > > Subject: bean:write returning null > > > > > > > > > > How are you guys testing for this in JSP? > > > > > > > > > > Mark > > > > > "De recta non tolerandum sunt." > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > > <mailto:[EMAIL PROTECTED]> > > > > For additional commands, e-mail: > > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
You're not a lawyer too are you? JM > -Original Message- > From: Mannem, Taati [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:40 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > > Great! > I am becoming a worthy(??) disciple if not a guru! > Keep Going Guys! > > Regards, > Taati > > -Original Message- > > From: James Mitchell [SMTP:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 4:42 PM > > To: Struts Users Mailing List > > Subject:RE: bean:write returning null > > > > Yes you are > > > http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg30390.html > > > > > > > > JM > > > > > -Original Message- > > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, May 10, 2002 4:34 PM > > > To: Struts Users Mailing List > > > Subject: RE: bean:write returning null > > > > > > > > > > > > By using Present tag I believe,,, > > > Leo and Jim helped me with this y'day > > > Am I correct Jim and Leo > > > Regards, > > > Taati > > > > -Original Message- > > > > From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]] > > > > Sent: Friday, May 10, 2002 4:30 PM > > > > To: Struts (E-mail) > > > > Subject:bean:write returning null > > > > > > > > How are you guys testing for this in JSP? > > > > > > > > Mark > > > > "De recta non tolerandum sunt." > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Great! I am becoming a worthy(??) disciple if not a guru! Keep Going Guys! Regards, Taati > -Original Message- > From: James Mitchell [SMTP:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:42 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > Yes you are > http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg30390.html > > > > JM > > > -Original Message- > > From: Mannem, Taati [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 4:34 PM > > To: Struts Users Mailing List > > Subject: RE: bean:write returning null > > > > > > > > By using Present tag I believe,,, > > Leo and Jim helped me with this y'day > > Am I correct Jim and Leo > > Regards, > > Taati > > > -Original Message- > > > From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, May 10, 2002 4:30 PM > > > To: Struts (E-mail) > > > Subject: bean:write returning null > > > > > > How are you guys testing for this in JSP? > > > > > > Mark > > > "De recta non tolerandum sunt." > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Yes you are http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg30390.html JM > -Original Message- > From: Mannem, Taati [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:34 PM > To: Struts Users Mailing List > Subject: RE: bean:write returning null > > > > By using Present tag I believe,,, > Leo and Jim helped me with this y'day > Am I correct Jim and Leo > Regards, > Taati > > -Original Message- > > From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 4:30 PM > > To: Struts (E-mail) > > Subject:bean:write returning null > > > > How are you guys testing for this in JSP? > > > > Mark > > "De recta non tolerandum sunt." > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
I tried logic:isEmpty without success. -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 4:44 PM To: Struts Users Mailing List Subject: RE: bean:write returning null Can you use logic:present ? Thinh -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 3:30 PM To: Struts (E-mail) Subject: bean:write returning null How are you guys testing for this in JSP? Mark "De recta non tolerandum sunt." -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
Can you use logic:present ? Thinh -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 3:30 PM To: Struts (E-mail) Subject: bean:write returning null How are you guys testing for this in JSP? Mark "De recta non tolerandum sunt." -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: bean:write returning null
By using Present tag I believe,,, Leo and Jim helped me with this y'day Am I correct Jim and Leo Regards, Taati > -Original Message- > From: Galbreath, Mark [SMTP:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 4:30 PM > To: Struts (E-mail) > Subject: bean:write returning null > > How are you guys testing for this in JSP? > > Mark > "De recta non tolerandum sunt." -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
bean:write returning null
How are you guys testing for this in JSP? Mark "De recta non tolerandum sunt."