Marc Lustig wrote:
>(The reason why I need to do this is that I need to build my own List to
>provide to the velocity context.)
>
>Or how do you guys deal with that??
>
I create a pull tool with a method that returns an ArrayList made from
the Vector that results from the select:
/* casual, notional source code */
public static ArrayList getObjectsOfInterest( ... )
{
Vector resultOfSelect = methodElsewhereThatPerformsSelect();
return new ArrayList( resultOfSelect );
}
Then in my template I can iterate over this ArrayList:
## more casual, notional code
#foreach( $object in $pullTool.getObjectsOfInterest(...) )
<div>$object.getDisplayName()</div>
#end
--
Edwin Gustafson
Cayman Chemical Company
--
734 971 3586 x 221
http://www.caymanchem.com/promo/ewg
42*13'44" N 83*43'25" W
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>