Got a strange problem with Velocity I don't know if anyone can help with.
If for example in a Velocity screen I have:
#foreach ($cd in $CDs)
<TR>
<TD>$cd.getArtist()</TD>
<TD>$cd.getTitle()</TD>
<TD>$myLink</TD>
</TR>
#end
everything work OK.
If I access a variable out of the object instead of accessing it via an
accessor get method I get a class cast exception eg
#foreach ($cd in $CDs)
<TR>
<TD>$cd.artist</TD>
<TD>$cd.title</TD>
<TD>$myLink</TD>
</TR>
#end
where artist and title are String member variables of the cd class.
Any ideas what I am doing wrong?
Thanks
Shaun
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]