----- Original Message ----- From: "Bruce Altner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 10, 2001 12:46 PM Subject: dealing with Peer class output in the #foreach directive
<snip> > It's crazy but I cannot for the life of me get Velocity to display the > information correctly...no matter what kind of call I do on $user, which is > supposed to be a row from the database, all it displays is the unrendered > symbol: I tried properties, methods, everything. I know that the database > part is working because I get the right number of rows back, but velocity > seems to be unable to resolve it. So you know that the vector contains objects before it goes into the context? What goes in the context is what comes out... What happend when you just put $users in the template? If you don't see a string representation of the data then go back into where you think you put it into the context with data and recheck. Or try $users.size() If you see a number and not $users.size(), at least you know you have users in the context correctly. The best way to check all of this is to tell velocity via properties to log everything. Then look in the velocity log. It will usually give you a useful log statement. See the velocity manual for hints on how to do that. You'll also get better support for velocity specific questions on [EMAIL PROTECTED], although that peer stuff is definitely turbine related. -Peter > > This should be very basic stuff. What do I need to do to get the column > values for each row? What kind of Object is $user anyway? Is this a casting > problem? > > Thanks, in advance. > > Bruce > > > _________________________________________________________________ > "It's a magical world, Hobbes, ol' buddy...let's go exploring!" ---Calvin > > Phone: 202-651-8553 > Pager Email:[EMAIL PROTECTED] > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
