You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Stefan Kuhn <sk...@ice.mpg.de> on 2002/06/27 13:09:12 UTC

Calling method with parameter in Velocity

Hi everybody,
I've got a velocity portlet. This portlet should contain RunData as $data. I 
want to use this to give a session attribute to a text field:

value="$!data.getRequest().getSession().getAttribute("formula")"

This seems not to work, so I dropped the ! to see the variable itself. The 
textt field gives

$!data.getRequest().getSession().getAttribute(

I assume velocity has problems with the "", because it seems to stop reading 
there. Is there any way to escape the "" ? According to velocity doc, this 
should not be necessary, but ... it's not working
Thanks for answers
Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>