Well - this is in the JXTemplate page not really the flowscript.  But
I can access the HashSet using a jx:forEach.  I can also access some
of the other methods like HashSet.isEmpty().  This works fine (returns
false).  But if I try and use the HashSet.size() method I get the
exception.

- Brent

On Thu, 5 Aug 2004 15:33:03 -0700, Mark Lundquist <[EMAIL PROTECTED]> wrote:
> 
> On Aug 5, 2004, at 2:55 PM, Brent Johnson wrote:
> 
> > I'm getting the following exception when I try to get the size of a
> > HashSet.
> >
> > org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> > file:/home/www/wedge/webapps/client/private/blocks/actions/examine.jx:
> > 48:59:java.lang.Exception:
> > size() : unknown type : class java.util.HashSet
> >
> > I can run a <jx:forEach> on the HashSet and it works fine, but when I
> > try and get the size I get an error.  Here's what I'm doing to get the
> > error:  ${item.getAttributes().size()}
> 
> I'm not the flowscript expert, but did you try adding
> 
>         importClass (Packages.java.util.HashSet);
> 
> ???
> ~ml
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to