You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Chris Joelly <ch...@unycom.com> on 2004/07/22 14:54:03 UTC

Accessing hashtables from Velocity

Hello!

i want to access an hashtable (fields) with objects from type EventFields
from velocity and i use the following code within an velocity template:

#foreach ( $df in $datafields )
	#set ( $fieldname = "field-$df.getId()" ) 
	$!fields.get($fieldname).getValue()
#end

EventFields is a class from Torque OM and i want to access the members
using the getter methods.

Can anybody tell me how to magage this with velocity?

thx, Chris


-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

Galgenbruders Frühlingslied

Es lenzet auch auf unserm Spahn,
o selige Epoche!
Ein Hälmlein will zum Lichte nahn
aus einem Astwurmloche.

Es schaukelt bald im Winde hin
Und schaukelt bald drin her.
Mir ist beinah, Ich wäre wer,
der ich doch nicht mehr bin . .

		-- Christian Morgenstern


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