how do I check the size of the collection

2002-05-24 Thread Jayaraman Dorai
I have a collection which I want to iterate in the jsp page. If the collections size is 0, I want to display a message no elements in the collection. Is there any struts tag for this. Thanks Jayaraman

RE: how do I check the size of the collection

2002-05-24 Thread Galbreath, Mark
Yes: logic:equals -Original Message- From: Jayaraman Dorai [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: how do I check the size of the collection I have a collection which I want to iterate in the jsp page. If the collections size is 0

RE: how do I check the size of the collection

2002-05-24 Thread Trieu, Danny
the size of the collection Yes: logic:equals -Original Message- From: Jayaraman Dorai [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: how do I check the size of the collection I have a collection which I want to iterate in the jsp page

RE: how do I check the size of the collection

2002-05-24 Thread Jayaraman Dorai
, May 24, 2002 10:48 AM To: 'Struts Users Mailing List' Subject: RE: how do I check the size of the collection Yes: logic:equals -Original Message- From: Jayaraman Dorai [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: how do I check the size

Re: how do I check the size of the collection

2002-05-24 Thread Ted Husted
The bean:size tag can do this. http://jakarta.apache.org/struts/doc-1.0.2/struts-bean.html#size You can then apply logic:equals to the result. Though, I usually wrap collections in a helper object that can do things like this for you. Jayaraman Dorai wrote: I have a collection which I

RE: how do I check the size of the collection

2002-05-24 Thread Jayaraman Dorai
thanks for the response. this worked. -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 11:12 AM To: 'Struts Users Mailing List' Subject: RE: how do I check the size of the collection This should work: bean:size id=size name=theCollection