I use bean:size. I don't know if there is a JSTL equivalent. Seems odd
that there wouldn't be one, but I can't find one in my JSTL reference.
Erik
Greg Pelly wrote:
What is the prefered way to obtain the size of elements that implement the
Collection interface, such as a Vector? I would like something like:
<c:out value="${requestScope.myVector.size}" default=""/> elements exist in
this Vector!
But since the method is called "size()" and not "getSize()," Struts can't
handle it. Right now I am using scriptlets:
<%
java.util.Vector v = request.getAttribute("myVector");
%>
...and later...
<P><%= v.size() %> elements exist in this Vector!
Any advice?
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]