Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: checking the size of an arraylist into a jsp with jstl tags

Mark Galbreath

2004-06-04

Replies:

*| <c:if test="${empty sessionScope.myBean.myProperty}"> do something
</c:if>

Which could have been easily found in a number of places, including:
http://jakarta.apache.org/struts/userGuide/struts-logic.html#empty
|*
Mark

Peter Bosmans wrote:

> Hi,
>
> The api don't help me very much.
> The problem is how to execute or get the result of the arraylist.size()
> method in a jsp-page when the arraylist exists in the session scope
> (created by a struts-action)
>
> Thanks for looking to my problem.
> Peter
>
> Brian P Bohnet wrote:
>
>> Did you look at the api before submitting this question?
>>
>> PeterBosmans wrote:
>>
>>> I have a arraylist of javabeans in my session.
>>> How can i check the size of this arraylist in a jsp-page (with the
>>> jstl taglib)
>>> I want to display different kind of text in the browser when the
>>> array is
>>> empty or not.
>>>
>>> thanks in advance
>>>
>>> ===========================================================================
>>>
>>>
>>> To unsubscribe: mailto listserv@(protected)
>>> JSP-INTEREST".
>>> For digest: mailto listserv@(protected)
>>> DIGEST".
>>>
>>> Some relevant archives, FAQs and Forums on JSPs can be found at:
>>>
>>> http://java.sun.com/products/jsp
>>> http://archives.java.sun.com/jsp-interest.html
>>> http://forums.java.sun.com
>>> http://www.jspinsider.com
>>>
>>>
>>
>> ===========================================================================
>>
>> To unsubscribe: mailto listserv@(protected)
>> JSP-INTEREST".
>> For digest: mailto listserv@(protected)
>> DIGEST".
>>
>> Some relevant archives, FAQs and Forums on JSPs can be found at:
>>
>> http://java.sun.com/products/jsp
>> http://archives.java.sun.com/jsp-interest.html
>> http://forums.java.sun.com
>> http://www.jspinsider.com
>>
>
>
> --
> Peter Bosmans
> Katholieke Hogeschool Limburg
> Universitaire Campus Gebouw B Bus 1
> 3590 Diepenbeek
> Tel. +32 11 230 770
> Fax. +32 11 230 789
> Mail. peter.bosmans@(protected)
>
> ===========================================================================
>
> To unsubscribe: mailto listserv@(protected)
> JSP-INTEREST".
> For digest: mailto listserv@(protected)
> DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com
>
>

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.