velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Lloyd-Newberry <new...@yahoo.com>
Subject Re: Veclocity and Object properties in ArrayList
Date Fri, 17 Oct 2003 17:48:41 GMT
Don,

What do you get if you put a $image in that #for loop? I would suspect 
that the private class is giving you problems with introspection. If 
that is the case, could make the class implement a public interface?

-Brian


don wrote:
> I am having problems getting properties from objects which are put into an
> ArrayList.  Here is the code which creates the ArrayList:
> 
<snip />
> 
> This is the velocity template:
> 
> #foreach ($image in $images)
> 
>             $image.caption
> 
> $image.Caption
> 
> $image.getCaption()     
> 
>             #end
> 
> Which produces the result:
> 
>             $image.caption
> 
>             $image.Caption
> 
>             $image.getCaption()     
> 

>             $image.caption
> 
>             $image.Caption
> 
>             $image.getCaption()     
<repeat times="5"/>

> I have gone through the manual, but with no luck. Any ideas?



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message