struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: iterable tag
Date Fri, 11 Jan 2013 19:21:13 GMT
Can you cut and paste your <s:iterator> code into the email so we can see?
  (*Chris*)


On Fri, Jan 11, 2013 at 11:12 AM, fusillator <fusillator@gmail.com> wrote:

> Hi all, I'm new to struts2/java matters, so be sympathetic please.
>
> I've a question about <s:iterator> tag
>
> I recently used it to loop on a Iterable collection of type
> java.util.TreeMap$Values retrieved by the method java.util.TreeMap.values()
>
> getting the following cast exception:
>
> 2013-01-11 18:45:00,520 DEBUG org.apache.struts.tutorial.**
> wildcard.service.**PersonService.getPeople:33 [Person [1: Paolino
> Paperino], Person [2: Paperon De Paperoni], Person [3: Archimede
> Pitagorica]]
> 2013-01-11 18:45:00,523 DEBUG org.apache.struts.tutorial.**
> wildcard.service.**PersonService.getPeople:34 class
> java.util.TreeMap$Values
> 2013-01-11 18:45:00,523 DEBUG org.apache.struts.tutorial.**
> wildcard.service.**PersonService.getPeople:34 class
> java.util.TreeMap$Values
> gen 11, 2013 6:45:01 PM org.apache.jasper.compiler.**TldLocationsCache
> tldScanJar
> WARNING: Caught an exception while evaluating expression 'people.isEmpty'
> against value stack
> java.lang.ClassCastException: java.util.TreeMap$Values cannot be cast to
> java.util.Set
>         at ognl.SetPropertyAccessor.**getProperty(**
> SetPropertyAccessor.java:47)
>         at com.opensymphony.xwork2.ognl.**accessor.**
> XWorkCollectionPropertyAccesso**r.getProperty(**
> XWorkCollectionPropertyAccesso**r.java:93)
>         at ognl.OgnlRuntime.getProperty(**OgnlRuntime.java:2300)
>
> The used variable is reported by log4j.
> Is there any restriction on the iterator tags?
> Could someone suggest me a tutorial/howto about ognl/value stack?
>
> Best regards
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<user-unsubscribe@struts.apache.org>
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message