Help in Logic Tag
i want to be able to show a message like No records found is there was no records found or logic/iterate did not do any iteration. Can anybody provide us a solution to this kind of problem? thanks a lot!. i have this in my JSP: logic:iterate id=referralsInfo name=referralsinfos tr td width=0%nbsp;/td td width=15% class=tablecontentdata nbsp;bean:write name=referralsInfo property=lastname/ /td td width=16% class=tablecontentdata nbsp;bean:write name=referralsInfo property=name/ /td td width=11% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mi/ /td td width=14% class=tablecontentdata nbsp;bean:write name=referralsInfo property=phone/ /td td width=19% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mobile/ /td td width=25%nbsp;/td /tr /logic:iterate
Re: Help in Logic Tag
I do something like this: app:MemberSelect id=memberVectorORDER BY LASTNAME, FIRSTNAME/app:MemberSelect logic:present name=memberVector logic:iterate id=member type=classname here name=memberVector do stuff here /logic:iterate /logic:present logic:notpresent Whine here /logic:notpresent The trick is that the MemberSelectTag returns null, not an empty Vector, if it doesn't find any matching records. - Original Message - From: Richard Raquepo [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 10:04 PM Subject: Help in Logic Tag i want to be able to show a message like No records found is there was no records found or logic/iterate did not do any iteration. Can anybody provide us a solution to this kind of problem? thanks a lot!. i have this in my JSP: logic:iterate id=referralsInfo name=referralsinfos tr td width=0%nbsp;/td td width=15% class=tablecontentdata nbsp;bean:write name=referralsInfo property=lastname/ /td td width=16% class=tablecontentdata nbsp;bean:write name=referralsInfo property=name/ /td td width=11% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mi/ /td td width=14% class=tablecontentdata nbsp;bean:write name=referralsInfo property=phone/ /td td width=19% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mobile/ /td td width=25%nbsp;/td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help in Logic Tag
With Struts tags: bean:size name=list id=collectionSize / logic:greaterThan name=collectionSize value=0 logic:iterate ... ... /logic:iterate /logic:greaterThan logic:equal name=collectionSize value=0 ... /logic:equal -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED]] Sent: Friday, 21 February 2003 2:05 PM To: Struts Users Mailing List Subject: Help in Logic Tag i want to be able to show a message like No records found is there was no records found or logic/iterate did not do any iteration. Can anybody provide us a solution to this kind of problem? thanks a lot!. i have this in my JSP: logic:iterate id=referralsInfo name=referralsinfos tr td width=0%nbsp;/td td width=15% class=tablecontentdata nbsp;bean:write name=referralsInfo property=lastname/ /td td width=16% class=tablecontentdata nbsp;bean:write name=referralsInfo property=name/ /td td width=11% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mi/ /td td width=14% class=tablecontentdata nbsp;bean:write name=referralsInfo property=phone/ /td td width=19% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mobile/ /td td width=25%nbsp;/td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help in Logic Tag
i have this code but i have an error Cannot find bean referralsinfo in any scope my referralsinfo is in my request session and i know its working cause i can use it in my logic:iterate tag. what seems to be the problem? Here's some of my jsp code . logic:iterate id=referralsInfo name=referralsinfos .. /logic:iterate bean:size id=size name=referralsinfo/ logic:equal name=size value=0 tr td colspan=7 class=tablecontentdata No record(s) found! /td /tr /logic:equal Am i doing things right? Thanks -Richard - Original Message - From: Todd Pierce [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, February 21, 2003 11:07 AM Subject: RE: Help in Logic Tag With Struts tags: bean:size name=list id=collectionSize / logic:greaterThan name=collectionSize value=0 logic:iterate ... ... /logic:iterate /logic:greaterThan logic:equal name=collectionSize value=0 ... /logic:equal -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED]] Sent: Friday, 21 February 2003 2:05 PM To: Struts Users Mailing List Subject: Help in Logic Tag i want to be able to show a message like No records found is there was no records found or logic/iterate did not do any iteration. Can anybody provide us a solution to this kind of problem? thanks a lot!. i have this in my JSP: logic:iterate id=referralsInfo name=referralsinfos tr td width=0%nbsp;/td td width=15% class=tablecontentdata nbsp;bean:write name=referralsInfo property=lastname/ /td td width=16% class=tablecontentdata nbsp;bean:write name=referralsInfo property=name/ /td td width=11% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mi/ /td td width=14% class=tablecontentdata nbsp;bean:write name=referralsInfo property=phone/ /td td width=19% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mobile/ /td td width=25%nbsp;/td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help in Logic Tag
Got it! Thanks everyone! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help in Logic Tag
get rid of this line bean:size id=size name=referralsinfo/ try this logic:equal name=referralsinfo property=size value=0 tr td colspan=7 class=tablecontentdata No record(s) found! /td /tr /logic:equal chaks. -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED]] Sent: Friday, 21 February 2003 2:57 PM To: Struts Users Mailing List Subject: Re: Help in Logic Tag i have this code but i have an error Cannot find bean referralsinfo in any scope my referralsinfo is in my request session and i know its working cause i can use it in my logic:iterate tag. what seems to be the problem? Here's some of my jsp code . logic:iterate id=referralsInfo name=referralsinfos .. /logic:iterate bean:size id=size name=referralsinfo/ logic:equal name=size value=0 tr td colspan=7 class=tablecontentdata No record(s) found! /td /tr /logic:equal Am i doing things right? Thanks -Richard - Original Message - From: Todd Pierce [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, February 21, 2003 11:07 AM Subject: RE: Help in Logic Tag With Struts tags: bean:size name=list id=collectionSize / logic:greaterThan name=collectionSize value=0 logic:iterate ... ... /logic:iterate /logic:greaterThan logic:equal name=collectionSize value=0 ... /logic:equal -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED]] Sent: Friday, 21 February 2003 2:05 PM To: Struts Users Mailing List Subject: Help in Logic Tag i want to be able to show a message like No records found is there was no records found or logic/iterate did not do any iteration. Can anybody provide us a solution to this kind of problem? thanks a lot!. i have this in my JSP: logic:iterate id=referralsInfo name=referralsinfos tr td width=0%nbsp;/td td width=15% class=tablecontentdata nbsp;bean:write name=referralsInfo property=lastname/ /td td width=16% class=tablecontentdata nbsp;bean:write name=referralsInfo property=name/ /td td width=11% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mi/ /td td width=14% class=tablecontentdata nbsp;bean:write name=referralsInfo property=phone/ /td td width=19% class=tablecontentdata nbsp;bean:write name=referralsInfo property=mobile/ /td td width=25%nbsp;/td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]