If you call $stack.push($value), then whatever is set to $value will be at the top of the stack. WOuld that work?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Pfeifer Sent: Monday, November 24, 2003 7:52 AM To: '[EMAIL PROTECTED]' Subject: [OS-webwork] Unable to put a object to stack in a velocity template I've got a little problem, I am trying to put a string to the context map within a velocity template like this: #if ($parameters.name) $stack.context.put("FormName", $parameters.name) #end Unfortunately it will just return "stack.context...." as a string to the browser without evaluating it. Does anyone know why? After all, OgnlValueStack has a getContext() method which exposes the underlying HashMap. /Daniel ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork