this is the exception:
java.lang.NumberFormatException: For input string: "size"

forget what I wrote in the PD, that is ok.. the problem is with the
size with EL at the c:if tag.

thank you!

On Jul 16, 7:19 am, Juan Diego <juanddpe...@gmail.com> wrote:
> Hi folks!
>
> I am trying to retrieve the "size" attribute from a Vector for
> evaluating if there is data stored in there, but it throws me an
> exception when I use "${myvector.size gt 0}  why??
>
> This is the code
>
>         <c:if test="${branch.telephones.size gt 0}">
>             Tel&eacute;fonos:
>             <c:forEach var="telephone" items="${branch.telephones}">
>                 <c:out value="${telephone}" />
>             </c:forEach>
>         </c:if>
>
> And it does not have to be with the data retrieved previously, because
> I already tested it and everything is alright.
>
> I hope you can help me with this.
>
> Thank you in advance!
>
> PD: I removed the c:if to print directly withouth any validations the
> telephone numbers and nothing, it does not print nothing.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to