checking a empty list
Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: checking a empty list
Use logic:empty, not logic:present. -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: checking a empty list
Try this: bean:size id=size name=document property=attachmentsList/ logic:equal name=size value=0 ... /logic:equal Best regads Patrice - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 6:04 PM Subject: checking a empty list Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList Regards, Bernhard -- 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: checking a empty list
sorry to all, i am a newbie in communication via mailing lists. i hope u forgive this nonsense mail. i don't want to bother you. Sven Pohl [EMAIL PROTECTED] -Original Message- From: Sven Frederik Pohl Sent: Mittwoch, 27. November 2002 18:27 To: Struts Users Mailing List Subject: RE: checking a empty list hi bernhard, ich schreibe nicht direkt an die liste, weil ich mir nicht 100%ig sicher bin, aber ich hatte das selbe problem und ich glaube nicht, dass es geht. mal sehen, was die anderen sagen. gruß sven -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: checking a empty list
This works, great! Thank you! I wonder why this is not documented... at least not in http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html Is there no doc yet for the 1.1-b2? -Ursprüngliche Nachricht- Von: Karr, David [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 27. November 2002 18:25 An: Struts Users Mailing List Betreff: RE: checking a empty list Use logic:empty, not logic:present. -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList -- 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: checking a empty list
It appears this tag wasn't available in 1.0.2. -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] This works, great! Thank you! I wonder why this is not documented... at least not in http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html Is there no doc yet for the 1.1-b2? -Ursprüngliche Nachricht- Von: Karr, David [mailto:[EMAIL PROTECTED]] Use logic:empty, not logic:present. -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]