File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About JSTL, EL and size Collections

 
Rafael Afonso
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
In my JSP page, I have a bean that is a Collection. I am using a <c:choose> tag. To verify if my Collection is empty I do this:

Now, If I want verify size Collection I do not do this:

because there is not getSize() method for Collections, but size(). Does EL allow a alternative? Or must I use <c_rt:when> like:

Thanks,
 
Axel Janssen
Ranch Hand
Posts: 2166
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very sure that you only can use the twin
rtexprvalue library c_rt.
..or if you access minhaColecao as a bean attribute you may save the size of your collection as an extra attribute is that bean.
[ February 26, 2003: Message edited by: Axel Janssen ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic