velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rickard Öberg <>
Subject Re: Indexed getters
Date Tue, 27 Nov 2001 16:00:14 GMT
Geir Magnusson Jr. wrote:

>>>-----Original Message-----
>>>From: Stephane MOR []
>>>Sent: Tuesday, November 27, 2001 10:22 AM
>>>Then, in the template, you can use :
>>>to get the returned String.
>>That is how I understand it as well, but it doesn't work that way for me. I
>>am relying on webwork to provide the "context". It has a servlet that
>>extends VelocityServlet that provides the WebWork context object
>>(ValueStack) to the VelocityEngine. Perhaps there is a problem with this
> Hm.  I would bet that WebWork works :) do you put the object into the
> context, or does webwork do it for you?

WebWork puts the action into the context, so that all properties of the action can be accessed
in the page.

Thus, if you use $foo it will be evaluated in WebWork to 

However, if you use $ this will be evaluated to 
<theaction>.getFoo() in WebWork, but getBar() will be done by Velocity. 
WebWork is only in charge of the first part of the value resolution.


Rickard Öberg

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message