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
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
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
, 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
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
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
6 matches
Mail list logo