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]

Reply via email to