Unfortunately not since FormName will be read out much later in the jsp (not
in the same .vm file) where numerous push/pops might have occoured already.
Also, we are talking about a string, I can not uniquely identify the string
if I push the string to the stack.

/Daniel

-----Original Message-----
From: Drew McAuliffe [mailto:[EMAIL PROTECTED]
Sent: den 24 november 2003 23:04
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Unable to put a object to stack in a velocity
template


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


-------------------------------------------------------
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

Reply via email to