logic:empty and logicnotEmpty with a Collection (again)

2003-02-19 Thread Steffen . Uhlig
Hi, I found some behaviour of the logic:notEmpty tag which I think is inconsistent. Reading the documentation, I think it should call a collection's isEmpty() method. It works as expected with a bean of type List, but it doesn't work with a Map. Testcase: If emptyList was built with List

RE: logic:empty and logicnotEmpty with a Collection (again)

2003-02-19 Thread James Mitchell
the man who cannot read them. - Mark Twain (1835-1910) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 3:11 AM To: [EMAIL PROTECTED] Subject: logic:empty and logicnotEmpty with a Collection (again) Hi, I

RE: logic:empty and logicnotEmpty with a Collection (again)

2003-02-19 Thread James Mitchell
: logic:empty and logicnotEmpty with a Collection (again) Hi, I found some behaviour of the logic:notEmpty tag which I think is inconsistent. Reading the documentation, I think it should call a collection's isEmpty() method. It works as expected with a bean of type List

RE: logic:empty and logicnotEmpty with a Collection (again)

2003-02-19 Thread James Mitchell
. - Mark Twain (1835-1910) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 11:02 AM To: 'Struts Users Mailing List' Subject: RE: logic:empty and logicnotEmpty with a Collection (again) Oops, hold that thought. I didn't read

RE: logic:empty and logicnotEmpty with a Collection (again)

2003-02-19 Thread Steffen . Uhlig
Ok. Scratch that, I was correct the first time. You are right. I had been using 1.1b2 without knowing :-(. I changed to 1.1b3 and everything is fine. Sorry, my fault. Thanks for the help. Btw, is there an easy way to tell which particular minor version of Struts is in use, maybe from the

logic:empty and logicnotEmpty with a Collection

2003-02-13 Thread ROSSEL Olivier
This is probably an FAQ, but I cannot understand that: logic:empty This tag evaluates its nested body content only if the specified value is -either absent (i.e. null), -an empty string (i.e. a java.lang.String with a length of zero) or -an empty java.util.Collection (tested by the .isEmpty()

RE: logic:empty and logicnotEmpty with a Collection

2003-02-13 Thread Sri Sankaran
. /logic:notEmpty Sri -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 12:03 PM To: '[EMAIL PROTECTED]' Subject: logic:empty and logicnotEmpty with a Collection This is probably an FAQ, but I cannot understand that: logic:empty