On Jan 17, 2008 4:43 AM, omar Martin Velasco <[EMAIL PROTECTED]> wrote:
> We are using roller 4 and we have created a filter that process every roller
> request. In the filter, we wanna inject a velocity object to the velocity
> context and read it from the templates. We have trying to set the attribute
> in the session like:
>
> request.getSession().setAttribute('name', object);
>
> In the template we try to get the attribute like:
>
>
> #set($name=$request.getHttpServletRequest().getSession().getAttribute('name'))
>
> but this doesn't work.
There is no $request object in Roller. If you want to add a new model
object to Roller, then implement the PageModel interface. This email
has some details: http://markmail.org/message/eefvzetzvkjzi76x
- Dave